home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 December
/
simtel1292_SIMTEL_1292_Walnut_Creek.iso
/
msdos
/
database
/
tara201.arc
/
FIELD.DOC
< prev
next >
Wrap
Text File
|
1987-05-12
|
1KB
|
24 lines
FIELD: Tara Datafile Utilities, v. 2.0, (c) 1987 by David C. Oshel
Projects selected fields from MailMerge-type records to standard output.
Usage: C>FIELD 1 2 7 <names.dat >small.dat
C>tsort 8 <names.dat | FIELD -s. 3:20 12 8 | more
C>pick -f* 8 eq X <names.dat | FIELD -f* 2: 1 2 3 >temp
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 >) COPIES fields 1, 2 and 7 to records in "small.dat".
The second FORMATS field 3 in 20 DOTS, fields 12 & 8 are formatted implicitly.
The third sets field separator to "*", and FORMATS all fields in default width.
Formatted output, selected by the "fieldnumber:width" style, is most usefully
received on-screen. If the contents of a field are longer than the width, the
field is truncated. Fields are left justified, but if the data is apparently
numeric, it will be right justified. Output remains in standard record format
if there's NO COLON argument. Default width is SAME AS LAST or else 15 spaces.
An extra space appears between formatted fields. A field number may not be 0.