Return to Snippet

Revision: 60147
at October 23, 2012 21:40 by claudiodev


Initial Code
find . -type f -name "*.file" | xargs grep -l "STRING"

Initial URL


Initial Description
Find and List all the files with extension .file containing/not containing the given string "STRING"

The snippet is set to "containing", to switch it to "not containg" just replace "grep -l" with "grep -L"

containing : grep -l
not containing: grep -L

Initial Title
Find and List files containing/not containg a certain string

Initial Tags
find

Initial Language
Bash