* bad day for du sort.
@ 1997-02-13 19:48 H. Blakely Williford
0 siblings, 0 replies; only message in thread
From: H. Blakely Williford @ 1997-02-13 19:48 UTC (permalink / raw)
To: tru64-unix-managers
Hello World!
One of our applications generates a file that needs to have a sort
applied to it. There is not a field seperator in the file.
The fields that need to be sorted are positions 41, and the seccond
field is between positions 1 and 7.
When we sort the file useing
> sort -b -k 1.42,42 infile -o outfile
or even
> sort -b -k 1.1,7 infile -o outfile
the sort works. When we combind the sort so that we have a primary
and seccondary sort
> sort -b -k 1.42,42 -k 2.1,7 infile -o outfile
we get a random order sort.
suggestions on how to word a primary and secondary sort so that
du's sort will do what we want?
thank-you for your time.
--
H. Blakely Williford Men never do evil so completely and
Systems Administrator cheerfully as when they do it from
The Fuller Brush Company religious conviction. (Pascal)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1997-02-13 19:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-02-13 19:48 bad day for du sort H. Blakely Williford
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox