BigAdmin ShellCmds Section description page.
 
 
find . -type f -exec grep "<sub-string>" {} \; -print
Find files (and content) containing <sub-string> within directory tree

Description: This will search all files recursively through the current directory tree and look for the <sub-string> specified. The filename will be printed after all occurrances of <sub-string> within the file and the context in which the sub-string was found. This is useful for searching through script files looking for strings that may need to be changed or updated. Depending on size of directory, command can take a little time and output could get lengthy.

Contact: N/A

Submitter: N/A

 
 
Copyright 1994-2009 Sun Microsystems, Inc. Close