![]() |
|
|
|
|
|||||||
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. Shell Script Page. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| need help in sort | ali560045 | Shell Programming and Scripting | 2 | 12-04-2007 03:38 AM |
| sort | prasathlogu | UNIX for Dummies Questions & Answers | 1 | 10-08-2007 03:56 AM |
| du -h | sort ? | fongthai | Shell Programming and Scripting | 6 | 11-02-2006 04:59 PM |
| How do i sort? | abhijeetkul | Shell Programming and Scripting | 1 | 12-21-2005 11:49 PM |
| 2nd sort key | whatisthis | UNIX for Dummies Questions & Answers | 1 | 10-20-2004 07:46 AM |
|
|
Submit Tools | LinkBack | Thread Tools | 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 03:34 AM. |
| Forum Sponsor | ||
|
|
| Thread Tools | |
| Display Modes | |
|
|