19 Ekim 2010 Salı

find a text in all files on linux

1.



find / -type f -exec grep -H 'egemen' {} ;



2.

cd /directory_tree_you_want_to_search



find . -type f -exec grep -l "string to find" {} ; -print



3.



find . -exec file {} ; | grep TEXT

Hiç yorum yok:

Yorum Gönder