home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 December
/
simtel1292_SIMTEL_1292_Walnut_Creek.iso
/
msdos
/
database
/
tara201.arc
/
PICK.DOC
< prev
next >
Wrap
Text File
|
1987-05-12
|
1KB
|
24 lines
PICK: Tara Datafile Utilities, v. 2.0, (c) 1987 by David C. Oshel
Picks a subset of MailMerge-type records and copies them to standard output.
Usage: C>pick 7 gt $10,000.00 <salary.dat >short.dat
C>pick 5 ne "Ames, IA" <salary.dat >>short.dat
C>pick Miocene <b:\datastar\biblio.dta
C>pick -f\ 13 ge r <names.dat | pick -f\ 13 lt s | more
Your INPUT DATAFILE (with <) is chosen on the command line. You may give a
complete pathname to another drive and/or subdirectory.
The first example (with >) sends the OUTPUT to a new file, named "short.dat".
The second (with >>) appends additional output to the same file, "short.dat".
The third sends any record with "Miocene" anywhere to the SCREEN (with no >).
The fourth, if field 13 (separated by "\") starts with "R", view it on screen.
Commands have three arguments: The FIELD NUMBER, OPERATOR, and SEARCH VALUE.
The operators are EQ, NE, LT, GT, LE, GE, /LT, /GT, /LE, /GE, HAS and LACKS.
Field X is to the immediate left of the Xth comma, but field 0 is the entire
record. Search values may be quoted. Arguments may be missing. The default
operator is HAS, "contains", or GE if field is not 0. "/LT" means NOT LT.