Using find command in Unix

Just for my memory...

find . -exec grep "keywords" '{}' \; -print

This handly statement finds files contains "keywords" and print the line and the file name as well.

Ref: http://www.athabascau.ca/html/depts/compserv/webunit/HOWTO/find.htm#EX03

Comments

Popular posts from this blog