Now in this file, I need to search a keyword “Successful” and based on the search the output should reflect as a numeric value i.e. 2 (successful), 1 (Fail)
Hi @vk.khurava , the requirement is to count the total number of line and total number of successful (keyword) count and generate the same in numeric value…
Q: (number of lines of it, number of lines whose (it contains "Successful") of it, number of lines whose (it contains "fail") of it ) of file "c:\temp\log.txt"
A: 3, 2, 1