![]() |
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 |
| Check the record count in table (table in oracle) | kamineni | Shell Programming and Scripting | 1 | 12-29-2008 06:32 AM |
| Check the record count in table (table in oracle) | kamineni | Shell Programming and Scripting | 1 | 12-15-2008 08:31 AM |
| Pivot variable record length file and change delimiter | thomasr | Shell Programming and Scripting | 3 | 10-08-2007 08:40 PM |
| pivot | mukhanj | Shell Programming and Scripting | 4 | 08-08-2006 03:40 PM |
| Converting Pivot file to flat file | vskr72 | Shell Programming and Scripting | 2 | 10-18-2005 04:41 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Pivot table
Hello everyone,
I would like to use awk to parse a file with three columns in, like: monday 0 1 monday 1 1 monday 2 1 monday 3 1 monday 4 1 monday 5 1 tuesday 0 5 tuesday 1 1 tuesday 2 1 tuesday 3 1 tuesday 4 1 wednesday 0 1 monday 5 25 they represent the day the hour and the number of transactions. There are thousand of lines, I would like to generate a single table with hours as headers, the row name will be the day name, and the cells will be the average number of transaction for that day name in that particular hour like: =========== 0 1 2 3 4 5 6 7 ... 23 Monday xxx xxx xxx ... . . . . . . . . . . . . . . Tuesday xxx xxx xxx ... . . . . . . . . . . . . . . Wednesday xxx xxx xxx ... . . . . . . . . . . . . . . . . . Sunday xxx xxx xxx ... . . . . . . . . . . . . . . I only have access to the standard AWK, no gawk .... I hope you understand and can help. Thanks. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|