![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX Desktop for Dummies Questions & Answers Discuss UNIX and Linux user interfaces like GNOME, KDE, CDE, and Open Office here. All UNIX and Linux Newbies Welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help sorting .csv file | Jazmania | Shell Programming and Scripting | 3 | 11-14-2008 11:36 AM |
| Finding & Moving Oldest File by Parsing/Sorting Date Info in File Names | nikosey | Shell Programming and Scripting | 6 | 07-30-2008 10:46 PM |
| Sorting file | moutaz1983 | Shell Programming and Scripting | 1 | 01-06-2008 10:54 AM |
| Sorting a file | mtechnocrat | UNIX for Dummies Questions & Answers | 11 | 06-28-2007 08:28 AM |
| sorting file | sx3v1l_1n51de | Shell Programming and Scripting | 4 | 06-22-2005 02:16 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Sorting a file
I have a file that has the following 4 fields separated by a colum, Name, Street Address,City and State, Zip code. I want to sort the file by zip code.
I tried this and it is not working. Please help! awk -f filename '{ print $4 " " $1 " " $2 " " $3 " " } |sort -n |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|