home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / ENTERPRS / CPM / UTILS / S / SEARCH22.LBR / SEARCH22.QZF / SEARCH22.QRF
Text File  |  2000-06-30  |  2KB  |  54 lines

  1.                           SEARCH QUICK REFERENCE
  2.  
  3. Calling syntax:
  4.     SEARCH [filespec] [separator] [-switches] [=search strings] [>output]
  5.     switches, search strings, and output filename can be put anywhere on
  6.     command line
  7.  
  8. Filespec:
  9.    DU:afn or ZCPRDIR:afn okay
  10.    libraries and members must be in quotes - "du:ambiglbr ambig.typ" -
  11.    or use '/' to separate member from library - du:ambiglbr/ambig.typ
  12.  
  13. Separators:
  14.     ""  Blank line (each paragraph is one item)
  15.     L   Each line is one item
  16.     Anything else is used literally (assumed followed by CRLF), e.g. ----
  17.     and can contain escape sequences:
  18.       \S  Space (or use quotes around separator)
  19.       \L  Treat following chars as lower case (separators are case-sensitive)
  20.       \U  Treat following chars as upper case
  21.       \nn  Repeat following char nn times, e.g. \50- specifies 50 dashes
  22.       \\  Literal backslash
  23.  
  24. Switches:
  25.     -B  Do not display items until one containing a specified string is read.
  26.         String must immediately (no spaces) follow switch.
  27.     -F  Suppress filename display, but DO show text
  28.     -I  Append selected items to file.  Must be follwed by filename.
  29.     -K  Before each matched item, display query alternative that matched
  30.     -M  Pause output every 23 lines 
  31.     -N  Display line numbers
  32.     -S  Show filenames only, but do NOT display text
  33.     -U  Show filenames for unsuccesful searches. "-F" overrides this.
  34.   Switches can be stacked (except for -B, -I), e.g., -FMN is okay.  Can be
  35.   in any order
  36.  
  37. Search strings:
  38.    &   And
  39.    |   Or
  40.    !   Not
  41.    \   Escape char:  \& finds ampersand, \| finds vertical bar, \S finds space
  42.    Examples:
  43.        SEARCH b3:myfile L -MF =CP/M&EDITOR|MS-DOS&COMPILER
  44.        SEARCH b15:mylbr/*.txt "" =TEXT/SSEARCHING&COMPUTER/SPROGRAMS"
  45.  
  46. Output:  
  47.     >FILENAME.TYP   output to diskfile (>DU: prefix not permitted)
  48.     >LST:           output to printer
  49.    text is not echoed to the screen if output is specified.  File will
  50.    be silently overwritten if it already exists.  DU: or DIR: not
  51.    allowed here.
  52.  
  53.  
  54.