sort question

Dave Decot decot at hpisod2.HP.COM
Fri May 5 08:49:10 AEST 1989


> How can I use the 'sort' command, to sort by two fields?
> Example:
> 
> _4 test _E                  _1 test _E
> _2 test _E    should be     _2 test _E
> _3 test _F                  _4 test _E
> _1 test _E                  _3 test _F
>  ^       ^
>  ^       ^
>   sorted
>     by

sort +0 -1 +2



More information about the Comp.unix.questions mailing list