grep -H "word" *.txt
2. Search a word in all the files in current directory and its subdirectories.
grep -H -r "word" home/directory
-H = display the name of the file
-r = search recursively trough subdirectories
Keep it simple stupid!
Copyright 2010 ECHO-tutorials.blogspot.com . Powered by Blogger
Blogger Templates created by Deluxe Templates Wordpress by thebookish
0 comments:
Post a Comment