Search in linux command find

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 {} ; -print > tomcat_files

Leave a Reply

Your email address will not be published. Required fields are marked *

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.
Anti-spam image