![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Comparing two files | superstar003 | Forum Support Area for Unregistered Users & Account Problems | 1 | 05-08-2008 12:34 AM |
| comparing shadow files with real files | terrym | UNIX for Advanced & Expert Users | 4 | 02-08-2007 11:38 PM |
| Ignoring Some Text When Comparing 2 Files | jimmyflip | UNIX for Dummies Questions & Answers | 1 | 09-21-2004 06:22 AM |
| comparing text files | sjumma | UNIX for Dummies Questions & Answers | 2 | 11-12-2003 06:44 PM |
| grep multiple text files in folder into 1 text file? | coppertone | UNIX for Dummies Questions & Answers | 7 | 08-23-2002 11:50 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
comparing within text files
hi!
some looping problem here... i have a 2-column text file 4835021 20060903FAL0132006 4835021 20060904FAL0132006 4835021 20060905FAL0132006 4835023 20060903FAL0132006 4835023 20061001HAL0132006 4835023 20061002HAL0132006 4835088 20061002HAL0132006 4835099 20061002HAL0132006 what i would like to do is to arrange this to (below) 4835021 with earliest date 4835023 with earliest date 4835033 with earliest date 4835088 with earliest date 4835099 with earliest date i would like to know which proper commands should i use. thanks! |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
check out the sort command.
maybe : Code:
sort +1 |
|
#3
|
|||
|
|||
|
I don't know if it would help, but "-n" would also say to sort numerically.
|
|
#4
|
|||
|
|||
|
hi! thanks for the help... you gave me an idea with that sort command. I actually used "sort -r -1" and it worked.
thanks again! |
|||
| Google The UNIX and Linux Forums |