I have a string (or a list of strings) that is/are to be searched in all the files of a directory. For example, if I am searching for ABC, and file1.txt contains ABC on line 6, then I want lines 6, 7, 8, and 9 from that file.I want all such output to go to a new output file.
Search for string(s) in files and report four lines of context (match and three following)
command line;text processing