Subject: Re: sort
To: Lars M Gustafsson <gumse@gyral.com>
From: Bob Nestor <rnestor@augustmail.com>
List: port-mac68k
Date: 07/09/2000 18:32:57
Lars M Gustafsson wrote:
>I am trying to sort a tab-separated textfile on column 3 with the "sort"
>command,
>but I can't get it to work, any sort wizzards out there ??
Assuming I have a file "test that contains:
1 d line 1
2 c line 2
3 b line 3
4 a line 4
Where the fields are tab separated, I can sort on the second field with:
sort +1 <test
Which produces:
4 a line 4
3 b line 3
2 c line 2
1 d line 1
Is that what you want?
-bob