![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
| Array inside an array | manas_ranjan | UNIX for Advanced & Expert Users | 5 | 06-10-2008 02:25 PM |
| proble in running .properties file | sari | Linux | 0 | 04-22-2008 03:25 AM |
| create array holding characters from sring then echo array. | rorey_breaker | Shell Programming and Scripting | 5 | 09-28-2007 08:42 AM |
| Big (at least to me) sed proble | go4desperado | Shell Programming and Scripting | 1 | 02-04-2007 06:47 AM |
| proble in ftp script | ravindra shukla | Shell Programming and Scripting | 6 | 08-28-2006 04:57 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Awk array proble!!!Please help
I need help with a problem that I have not been able to figure out.
I have a file that is about 650K lines. Records are seperated by blank lines, fields seperated by new lines. I was trying to make a report that would add up 2 fields and associate them with a CP. example output would be something like this: CP31 ---- TCS 10 54087 TCS 342 35173 TOTAL 59260 CP33 ---- TCS 8 48790 TCS 286 33614 TOTAL 82404 In a nutshell I have to sum up the first 2 fields of EDM blocks and WRC blocks and then associate them with what TCS & CP they belong to. I would like to use AWK, and was trying to use arrays, but with no luck. Maybe multi- dimensional, have not had any experiance with these. Any help would be very much appreciated. Thanks in advance. I attached a txt doc of partial file. I hope this makes sense. Last edited by timj123; 01-29-2008 at 09:01 PM.. |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|