![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| cut - columns with formatted Output | dhanamurthy | Shell Programming and Scripting | 9 | 05-19-2008 07:20 AM |
| Displaying Output in Columns | jjamd64 | Shell Programming and Scripting | 1 | 04-25-2008 03:46 AM |
| abt viewing all the columns in the output as it is.. | RRVARMA | UNIX for Advanced & Expert Users | 1 | 03-13-2008 08:46 AM |
| searching text files on specific columns for duplicates | Gerry405 | UNIX for Dummies Questions & Answers | 2 | 08-18-2005 07:51 AM |
| Interested in partial command output. | videsh77 | UNIX for Dummies Questions & Answers | 1 | 12-15-2004 07:35 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Searching partial columns and returning maximum as output
Hello,
I am just getting starting with awk and wondering if anyone could help with the following problem. I have a large file of data, 50,000 rows x 6 columns. I would like to search in blocks of 500 rows for a maximum value in a specific column and compile an output file that prints the complete line for each maximum per 500. Example, using a 10row x 3column, requested output for blocks of 5 rows: 1 L 3.2 2 F 6.5 3 J 8.4 4 E 5.1 5 A 4.2 6 U 2.2 7 O 6.9 8 H 4.5 9 D 2.3 10 R 21.3 Required Output: 3 J 8.4 10 R 21.3 Any help would be most appreciated, Rob |
|||
| Google The UNIX and Linux Forums |
| Forum Sponsor | ||
|
|