Sorting in UNIX
Posted on 2001-06-21
I'm using HP UX, kornshell.
How do you sort by position and not fields?
File to sort
file name: test.dat
Joe sdfwere adf dsf dsf e 78323
Jack dsf asdfkj ajsd ljdf 23432
Mary asd asdfj sdfj fsd ad 12343
Able asdf sdfjjfdljsl sdkjf 27382
I want to sort by the last 5 digits of each record.
How do I do this?