String Search of NSL Documents


CAVEAT - This search will only find strings located in text files (like .txt or .html).  It will not find the string in Postscript, pdf, or binary files.

  1. Log in to your AFS account and change directory to ~nsl/www/nsl_docs
  2. Use the rgrep command to find the string by recursively searching the directory**


                Example 1:     rgrep -irh  'proton'  *

                            Result:  Will recursively search all files (including subdirectories) for the string 'proton'.
 
 

                Example 2:     rgrep -hi  -R    '*.html'   'proton'  *

                            Result:  Will recursively search only  'html' files (including subdirectories) for the string 'proton'.
 

        Flags associated with rgrep:

               -i        Ignores case when search for string.
               -h       Highlights string when returning hits.
               -r        Recursively scans through directory tree.
               -R       Like -r, but only checks those files matching 'pattern'.
 
 

** Thanks to Don Peterson for tips on using this command.

Last revised March 29, 2000.