![]() |
|
|
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 |
| A summing issue | er_ashu | Shell Programming and Scripting | 5 | 05-06-2008 12:27 PM |
| how to read the data from an excel sheet and use those data as variable in the unix c | Anne Grace | UNIX for Advanced & Expert Users | 1 | 03-03-2008 07:21 AM |
| summing according to the column | ramky79 | UNIX for Dummies Questions & Answers | 2 | 02-28-2008 04:51 PM |
| Summing on column | sbasetty | Shell Programming and Scripting | 2 | 02-07-2007 08:15 PM |
| egrep and grouping | effigy | Shell Programming and Scripting | 1 | 10-14-2004 11:45 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Grouping and summing data through unix
Hi everyone,
I need a help on Unix scripting. I have a file is like this Date Amt 20071205 10 20071204 10 20071203 200 20071204 300 20071203 400 20071205 140 20071203 100 20071205 100 20071205 10 20071205 300 20071203 10 20071204 100 20071204 100 20071205 700 I want to add all the Amt for a particular date and Return the Date having max amt. So here is the consolidated total for individual dates. 20071203 710 20071204 510 20071205 1260 The script should return 20071205 for the above input since it has the max total amt Can anyone provide the Unix shell script for the above requirement. Thanks, Charan. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|