> -----Original Message-----
> From: Ron Johnson [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, January 26, 2003 11:03 AM
> To: Debian-User
> Cc: [EMAIL PROTECTED]
> Subject: Re: [OT] question regarding sort(1)
>
>
> On Sun, 2003-01-26 at 11:40, Steve Juranich wrote:
> > On 26 January 2003 at 10:37,
> > Ron Johnson <[EMAIL PROTECTED]> wrote:
> >
> > > What I want, though, is a straight, dumb ASCII sort based on
> each whole
> > > line of text, where " " collates before "0", etc.  I've looked in the
> > > man page, but see nothing.
>
> Here's an example:
>
> $ sort sort.example.txt
>   10,040,583  Violin_Concerto_in_D_major_Op._35.mp3
>   10,056,845  Symphony_5_Allegro_con_brio.mp3
>   10,101,975  MARS,_The_Bringer_of_War.mp3
>    1,011,879  rudolph's finale,instrumental.mp3

You should be able to do this by forcing sort to use a field separator that
does not appear in any line. Try "sort -t '$'". Sort should then treat each
line as a field and sort alphabetically.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to