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
Wrap
Text File
|
2000-06-30
|
2KB
|
54 lines
SEARCH QUICK REFERENCE
Calling syntax:
SEARCH [filespec] [separator] [-switches] [=search strings] [>output]
switches, search strings, and output filename can be put anywhere on
command line
Filespec:
DU:afn or ZCPRDIR:afn okay
libraries and members must be in quotes - "du:ambiglbr ambig.typ" -
or use '/' to separate member from library - du:ambiglbr/ambig.typ
Separators:
"" Blank line (each paragraph is one item)
L Each line is one item
Anything else is used literally (assumed followed by CRLF), e.g. ----
and can contain escape sequences:
\S Space (or use quotes around separator)
\L Treat following chars as lower case (separators are case-sensitive)
\U Treat following chars as upper case
\nn Repeat following char nn times, e.g. \50- specifies 50 dashes
\\ Literal backslash
Switches:
-B Do not display items until one containing a specified string is read.
String must immediately (no spaces) follow switch.
-F Suppress filename display, but DO show text
-I Append selected items to file. Must be follwed by filename.
-K Before each matched item, display query alternative that matched
-M Pause output every 23 lines
-N Display line numbers
-S Show filenames only, but do NOT display text
-U Show filenames for unsuccesful searches. "-F" overrides this.
Switches can be stacked (except for -B, -I), e.g., -FMN is okay. Can be
in any order
Search strings:
& And
| Or
! Not
\ Escape char: \& finds ampersand, \| finds vertical bar, \S finds space
Examples:
SEARCH b3:myfile L -MF =CP/M&EDITOR|MS-DOS&COMPILER
SEARCH b15:mylbr/*.txt "" =TEXT/SSEARCHING&COMPUTER/SPROGRAMS"
Output:
>FILENAME.TYP output to diskfile (>DU: prefix not permitted)
>LST: output to printer
text is not echoed to the screen if output is specified. File will
be silently overwritten if it already exists. DU: or DIR: not
allowed here.