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

Similar Posts

Comments

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





Subscribe without commenting