I want to achieve the following
Search through files and folders for particulars words e.g. keywords - error, critical and report back to me as an output the file and the line that report these keywords. E.g.
I have a file great.txt which has in it
Jan 21 - good
Jan 21- error
Jan 21 - critical
Jan 22 – good
Jan 22 - great
Jan 23- critical
Jan 23 - neat
Jan 24 – great.
So that when I put in the keyword “error”, it comes up with
great.txt
Jan 21 – error
And when I put in keyword “critical”, it comes up with
great.txt
Jan 21 – critical
Jan 23 – critical
Thanks
Search through files and folders for particulars words e.g. keywords - error, critical and report back to me as an output the file and the line that report these keywords. E.g.
I have a file great.txt which has in it
Jan 21 - good
Jan 21- error
Jan 21 - critical
Jan 22 – good
Jan 22 - great
Jan 23- critical
Jan 23 - neat
Jan 24 – great.
So that when I put in the keyword “error”, it comes up with
great.txt
Jan 21 – error
And when I put in keyword “critical”, it comes up with
great.txt
Jan 21 – critical
Jan 23 – critical
Thanks