For example, if we want to list all files in present working directory containing foo, the following command helps
find . -type f | xargs grep foo
Instead of period you can give the directory location.
-i for ignore case
find /usr/home/akt -type f | xargs grep -i foo
No comments:
Post a Comment