[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: grep question



> What is the correct Bash command to search for all occurrences
> of 'this_string' in all files in a folder and its sub-folders?

How about:

     find -type f -exec grep -H "this_string" \;

The "-H" grep option will show the name of the file.

Just a thought,
Charlie

-
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.