Linux – grep

Display filenames only:

grep -l dba *.trc          (lowercase letter l as switch)

Display filenames and matches

grep -H dba *.trc

Recursively find files and executes grep on each:

find . -name “*.trc*” -exec -l dba {} \;               — space required between closing brace and backslash

 

Leave a Reply

Your email address will not be published. Required fields are marked *