How to sort on exactly one field only

Rob McMahon cudcv at warwick.ac.uk
Thu Oct 25 02:38:04 AEST 1990


In article <1990Oct24.161210.15831 at warwick.ac.uk> I wrote:
>cudcv (5) > cat -n xx | sort -n +2 -3 +0 -1 | colrm 1 8
>...
>
>(SystemV-ers will use `cut -c8-' instead of `colrm 1 8'.)

But then of course they won't have cat -n ... so they'll have to use 

	pr -tn\ 6 | sort -n +2 -3 +0 -1 | cut -c8-

Rob
--
UUCP:   ...!mcsun!ukc!warwick!cudcv	PHONE:  +44 203 523037
JANET:  cudcv at uk.ac.warwick             INET:   cudcv at warwick.ac.uk
Rob McMahon, Computing Services, Warwick University, Coventry CV4 7AL, England



More information about the Comp.unix.shell mailing list