I already have a log say file.txt.
I will like to check in Bash, if a string (July) exists in the log and if so, check the remaining lines in the log for another string (foobar).
I already have a log say file.txt.
I will like to check in Bash, if a string (July) exists in the log and if so, check the remaining lines in the log for another string (foobar).