home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 December
/
simtel1292_SIMTEL_1292_Walnut_Creek.iso
/
msdos
/
database
/
tara201.arc
/
TSORT.DOC
< prev
next >
Wrap
Text File
|
1987-05-12
|
1KB
|
24 lines
TSORT (Text): Tara Datafile Utilities, v. 2.0, (c) 1987 by David C. Oshel
Sorts MailMerge-type records on any field & copies them to standard output.
Usage: C>tsort <names.dat >sorted.dat
C>tsort -f\ 2 a <names.dat
C>tsort d 2 <names.dat | tsort 1 | more
Your INPUT DATAFILE (with <) is chosen on the command line. You may give a
complete pathname to another drive and/or subdirectory. Tsort takes about
12 minutes to do a 2-way sort on 2,000 partially ordered records (hard disk).
The first example (with >) sends sorted OUTPUT to a new file, "sorted.dat".
The second sorts on field 2 (separated by "\") in ascending order, to SCREEN.
The third presents records in ascending field 1, descending field 2, order.
Tsort can do complex, inside-out sorts via command line pipes. Largest file
sortable in 512k memory exceeds 4,000 records. Split larger files with PICK,
then sort subfiles & merge. Use the "-f<character>" switch on the command line
to set the field separator to something other than comma. Only the first 32
characters of each sort field are significant. Default field is field 0, i.e.,
the entire record. Default order is ascending. All sorts are LEXICAL.