bad day for du sort.

From: H. Blakely Williford <blakew_at_fuller.com>
Date: Thu, 13 Feb 1997 14:48:17 -0500

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)
Received on Thu Feb 13 1997 - 22:11:06 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:47 NZDT