Re: Find files containing a specific string of text
Re: Show filenames in current and sub folders containing certain text
Often you will need to find the names and locations of files containing a particular text string, as you are also unsure of the folder you will want to search the entire directory structure starting from the current level. The following command will do the trick:
# find . | xargs grep -l "text" 2>/dev/null
Linux: Find files in all folders containing specific text written by UKC average rating 5/5 - 1 user ratings