home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / pc / doshelp / helpsb.zoo / help / find / examples.hlp next >
Encoding:
Text File  |  1989-01-01  |  1.5 KB  |  35 lines

  1. SAMPLE command and resulting output   | Comments about the output
  2.  
  3.   FIND/N "seven years ago" GETTYS.ADR    This example searches for the string
  4.                     'seven years ago' in a file called
  5. ---------- GETTYS.ADR            GETTYS.ADR and displays the line (or
  6. [1]Four score and seven years ago, our    lines with the relative line numbers
  7.                     that contain the string.
  8.  
  9.   FIND/V "seven years ago" GETTYS.ADR    Now we are searching for all lines
  10.                     that do not contain the string. This
  11. ---------- GETTYS.ADR            time we're not displaying the relative
  12. Fathers brought forth on this        line numbers.
  13. continent a new nation, conceived in
  14. liberty and dedicated to the        You may search more than one file
  15. proposition that all men are created    with FIND. Just specify them after
  16. equal.                    the first one.
  17.  
  18.   FIND/V/C "seven years ago" GETTYS.ADR    This example counts the number of 
  19.                     lines in the file GETTYS.ADR that do
  20. ---------- GETTYS.ADR: 5        not contain the string 'seven years
  21.                     ago'.
  22.  
  23.   DIR C:\ | FIND "BAS"            This example would give a directory
  24.                     listing of only the basic programs in
  25. TUTOR   BAS     2028  12-13-88    3:21p    the root directory of C:.
  26. PAL     BAS     1228   2-04-89    8:32a
  27.  
  28.   FIND """seven""" GETTYS.ADR        This example searches for the string
  29.                     '"seven"' in the file GETTYS.ADR (To
  30.                     search for the character ", enter it
  31.                     twice in the string being searched.)
  32.  
  33.   FIND """" GETTYS.ADR            This example searches for the single
  34.                     character " (double quote).
  35.