Ads

Search in linux command find

May 24, 2009
Filed under: Featured, Linux 



Find a multiple files in server with specific key word:
———————————————————
Sintax:: find /start/dir -exec grep -q my_search_word {} ; -print > filename_to_copy

Example::# find /usr/local/tomcat5/ -exec grep -q megaturks.net {} ; -print > tomcat_files

Comments

Tell me what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!





*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Subscribe without commenting