----- Forwarded message from davep ----- Date: Wed, 31 Oct 2001 19:17:06 -0700 To: Denis Perelyubskiy <[EMAIL PROTECTED]> Subject: Re: OT: not able to set textwidth to 65 User-Agent: Mutt/1.2.5i In-Reply-To: <[EMAIL PROTECTED]>; from [EMAIL PROTECTED] on Wed, Oct 31, 2001 at 06:02:23PM -0800
Actually, yes ... the original question was about _reversing_ the alphanumeric sort of a text file on a line by line basis ... rev ... 'reverses' each line, last char first, etc ... kinda silly, but it really is part of bedian woody, among other distros. ... so .... cat pine > rev ... becomes enip .... yada yada now, if you sort the reversed file you get silly stuff, BUT if you | rev it again, magic transpires ... you get the original list ... but sorted in order from last char to first .... look CLOSELY at the example or try it with your favorite `awked version of a list a see for yourself!!!! aloha, and Hth .. dave On Wed, Oct 31, 2001 at 06:02:23PM -0800, Denis Perelyubskiy wrote: > * Dave Price <[EMAIL PROTECTED]> [31-Oct-01 03:44 -0800]: > [...] > >> > pine > >> > mutt > >> > netscape > >> > kmail > >> > > >> > should be sorted in this set: > >> > > >> > pine > >> > netscape > >> > kmail > >> > mutt > [...] > >> rev filename | sort | rev > [...] > > am i missing something or you could simply > > sort -r filename > ? the -r switch simply inverts the results of comparisons > ... > > denis > > -- > // mailto: Denis Perelyubskiy <[EMAIL PROTECTED]> > // icq : 12359698 > // PGP : http://www.cs.ucla.edu/~denisp/files/pgp.asc ----- End forwarded message -----