From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078608810286.tru64-unix-managers.marc@archive.invalid> From: "H. Blakely Williford" Date: Thu, 13 Feb 1997 19:48:17 +0000 To: tru64-unix-managers Subject: bad day for du sort. X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078608810286 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)