![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| need help in sort | ali560045 | Shell Programming and Scripting | 2 | 12-04-2007 07:38 AM |
| sort | prasathlogu | UNIX for Dummies Questions & Answers | 1 | 10-08-2007 07:56 AM |
| du -h | sort ? | fongthai | Shell Programming and Scripting | 6 | 11-02-2006 08:59 PM |
| How do i sort? | abhijeetkul | Shell Programming and Scripting | 1 | 12-22-2005 03:49 AM |
| 2nd sort key | whatisthis | UNIX for Dummies Questions & Answers | 1 | 10-20-2004 11:46 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
How to Sort?? Pls help!!
The segment titled "Before" shows how it is now and the segment "After" (shown below) is how I want it to be sorted. Probably as a CSV format so that I can export it to a spreadsheet.
Need your help and suggestions!! Before: 1500.100: by the old run: -- --- --- ---- neitqodo < 1500.100: XYZ: 56433 neitrmq5 < 1500.100: XYZ: 11442 neitrmq5 < 1500.100: XYZ: 11442 by the new run: -- --- --- ---- neitqodo > 1500.100: XYZ: 14192 neitrmq5 > 1500.100: XYZ: 87068 neitrmq5 > 1500.100: XYZ: 87068 Occurrences in old: 2272 Occurrences in new: 2272 -------------------------------------------------------------------------- ------------------------------ 1500.19.14: by the old run: -- --- --- ---- neits7vf < 1500.19.14: SUPERPROVID: g19507 neits7vf < 1500.19.14: SUPERPROVID: g19507 neits7vf < 1500.19.14: SUPERPROVID: g19507 by the new run: -- --- --- ---- neits7vf > NOTUSED1500.19.14: SUPERPROVID: g19507 neits7vf > NOTUSED1500.19.14: SUPERPROVID: g19507 neits7vf > NOTUSED1500.19.14: SUPERPROVID: g19507 Occurrences in old: 31 Occurrences in new: 31 -------------------------------------------------------------------------- ------------------------------ AFTER (Old run in one column and the new run in another column with # of occurances in a column between them) neitqodo < 1500.100: XYZ: 56433 2272 neitqodo > 1500.100: XYZ: 14192 neitrmq5 < 1500.100: XYZ: 11442 neitrmq5 > 1500.100: XYZ: 87068 neitrmq5 < 1500.100: XYZ: 11442 neitrmq5 > 1500.100: XYZ: 87068 neits7vf < 1500.19.14: SUPERPROVID: g19507 31 neits7vf > NOTUSED1500.19.14: SUPERPROVID: g19507 neits7vf < 1500.19.14: SUPERPROVID: g19507 neits7vf > NOTUSED1500.19.14: SUPERPROVID: g19507 neits7vf < 1500.19.14: SUPERPROVID: g19507 neits7vf > NOTUSED1500.19.14: SUPERPROVID: g19507 Last edited by kn.naresh; 05-15-2008 at 07:34 AM.. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|