sort question

William Davidsen davidsen at sungod.steinmetz
Fri May 5 01:12:59 AEST 1989


In article <199448 at hrc.UUCP> dan at hrc.UUCP (Dan Troxel) writes:
| 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

  Try "sort +2"

  Look at the +n.m and -n.m stuff. No you *don't* need "+2 +0", read the
man page...
	bill davidsen		(davidsen at crdos1.crd.GE.COM)
  {uunet | philabs}!crdgw1!crdos1!davidsen
"Stupidity, like virtue, is its own reward" -me



More information about the Comp.unix.questions mailing list