The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
how to sort a file
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
how to sort a file
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
3
(
permalink
)
03-24-2002
Jimbo
Guest
Posts: n/a
Bits:
0
[
Banking
]
When you say columns, I assume you mean columnized data separated by white space, instead of character positions. If so, this should work:
Code:
sort -k2b,2 -k3b,3 -k10b,10 -k4b,4 myfile
Jimbo
Find 's past nominations received
Find 's present nominations given