On Tue, 2004-03-09 at 08:13, Dustin Puryear wrote:
> > > alphanumerically. It works fine for me, even eithout the -n:
> >
> > Mine is sorting alphanumericly, but compressing all the spaces
> > down, as if the file were really:
> > file 3,387,062 02-21 16:56 ./24547010.pdf
> > file 14,236 08-25 04:55 ./Analysis of Asteroid Split.pdf
> > file 651,283 07-26 14:57 ./Browser282b2.tar.gz
> > file 30,227 07-26 17:07 ./EasyTables0.8.4-9.tar.bz2
> > file 195,294 01-18 22:09 ./FAQ_Rev05_ENG.pdf
> > file 50 10-15 19:05 ./GovForum2_2003.ram
> > file 5,454 03-01 12:03 ./HP-LaserJet_1100-hpijs.ppd.gz
> > file 203,680 05-08 15:56 ./LinuxCompilersCompatibility702.pdf
> > file 493 01-20 18:45 ./MD5SUMS
>
> So your goal is to sort numerically on the second column but to keep the
> spaces right? Do you have to use sort? Can you sort in perl and just right
> justify the second column? Or what about sorting and doing the actual
> display with /usr/bin/printf to right justify?
I want to do a full-record ASCII sort on this file. No games, no
cleverness, just a $DEITY damned, mother fscking plain old ASCII
sort.
file 3,387,062 02-21 16:56 ./24547010.pdf
file 14,236 08-25 04:55 ./Analysis of Asteroid Split.pdf
file 651,283 07-26 14:57 ./Browser282b2.tar.gz
file 30,227 07-26 17:07 ./EasyTables0.8.4-9.tar.bz2
file 195,294 01-18 22:09 ./FAQ_Rev05_ENG.pdf
file 50 10-15 19:05 ./GovForum2_2003.ram
file 5,454 03-01 12:03 ./HP-LaserJet_1100-hpijs.ppd.gz
file 203,680 05-08 15:56 ./LinuxCompilersCompatibility702.pdf
file 493 01-20 18:45 ./MD5SUMS
Why is sort(1) trying to be so clever?
-- ----------------------------------------------------------------- Ron Johnson, Jr. ron.l.johnson@cox.net Jefferson, LA USA 4 degrees from Vladimir Putin ___________________ Nolug mailing list nolug@nolug.orgReceived on 03/09/04
This archive was generated by hypermail 2.2.0 : 12/19/08 EST