home *** CD-ROM | disk | FTP | other *** search
/ Share Gallery 1 / share_gal_1.zip / share_gal_1 / UT / UT002.ZIP / SFIND.DOC < prev    next >
Text File  |  1987-09-26  |  2KB  |  43 lines

  1. Instructions for SFIND            Copyright 1987 Eric Balkan
  2.  
  3.     If you type in the name of the program, SFIND, without any parameters,
  4. it'll tell you what you need to use it.  Basically, though, here is what
  5. you do:
  6.  
  7. 1 - Decide what directories/disks you want to search and enter them
  8. using the DOS SET command, e.g.:
  9.       C> set DIRS=C:\dir1;c:\dir2;.;d:\
  10.     Each directory name is separated by a semi-colon (;).  A period means
  11. to search the current directory, whatever that happens to be.  The word
  12. DIRS is used only by SFIND; otherwise the syntax is mostly similar to that
  13. of the DOS PATH command.  (The SET command allows an easy way for users to
  14. tell programs about things that don't change very often.) If you want to
  15. get rid of directories that have been previously specified, just key in:
  16.          set DIRS=
  17.     With no directories specified, SFIND will only search one directory --
  18. the one implied or specified with the filename.  Examples below.
  19.  
  20. 2 - Having set the directories to be searched, you can now execute SFIND:
  21.       C> sfind -u "hello" filepattern outputfilename
  22.     The "-u" option means to ignore case (i.e., treat everything as uppercase).
  23.     The characters between the "" is the string to search for.
  24.     The filepattern is the file or path/file template to search.
  25.     The outputfilename is where the found text records will go.
  26.  
  27.     Another option is "-m" which means suppress the messages that will come
  28. out to the screen.
  29.  
  30.     The following are examples:
  31.  
  32. sfind "555-1212" april.* out.apr
  33. sfind -u "tomorrow is another day." g?.???  script.out
  34. sfind -um "grapefruits, apples" \dir1\file??.* trash
  35.  
  36.     If the specified output file already exists, SFIND will ask if you want
  37. to re-use it.  If no output file name is specified, the output records will
  38. go to the screen.
  39.  
  40.     One other thing worth noting:  multiple spaces are treated as 1 space
  41. for comparision purposes.  That is, "tomorrow   is" compares the same as
  42. "tomorrow is".
  43.