tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: "H. Blakely Williford" <blakew () fuller ! com>
To: tru64-unix-managers
Subject: bad day for du sort.
Date: Thu, 13 Feb 1997 19:48:17 +0000	[thread overview]
Message-ID: <96078608810286.tru64-unix-managers.marc@archive.invalid> (raw)

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)

                 reply	other threads:[~1997-02-13 19:48 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox