Using grep (or some other utility), is it possible to find all matches of a regular expression in a folder (searching the text of each file?) I want to find every match of the regular expression zenity within a specific folder, so that I can find the file that contains the string zenity.
How can I find all matches of a string in a directory?
grep
If you're using GNU grep, you can use -r.grep -r zenity directoryOtherwise, if your grep implementation does not have any options for recursion, you can use find and grep:find directory -exec grep -H zenity {} +