The setup: I have a directory. In this directory is a series of subdirectories. In each subdirectory are four or five text files. The files are all named identically from directory to directory; i.e.
title pretty much says it all... how can i grep out a string from a bunch of files/subdirectories and also get the filename in which the string is contained?
The simplest grep command looks like the one shown below. This “find string in file” command will show all the lines in the file that contain the string, even when that string is only part of a longer ...