How can I search all files under a specific directory that contian a specific string sequence like "superuser"
i.e. search for all files in the current directory and sub-directories (recursively) if they contain the world "superuser"
|
How can I search all files under a specific directory that contian a specific string sequence like "superuser" i.e. search for all files in the current directory and sub-directories (recursively) if they contain the world "superuser" |
|||
|
|
|
grep's
EDIT: to search only .mp3 files and return their names (not the matched content, since they aren't text files anyway), use find to get a list of .mp3's and then use xargs to pass them to
If your version of find supports
|
|||||||||
|