![]() |
|
|
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 |
| Reading numbers thru shell | bhagyaraj.p | Shell Programming and Scripting | 2 | 04-14-2009 12:22 PM |
| Shell script to search through numbers and print the output | cdfd123 | Shell Programming and Scripting | 8 | 10-30-2007 04:40 PM |
| Shell script to check the unique numbers in huge data | namishtiwari | Shell Programming and Scripting | 7 | 08-10-2007 10:38 AM |
| retain Line numbers.. in Vi .. OR .. A SHELL SCRIPT | sdlayeeq | Shell Programming and Scripting | 2 | 04-26-2005 05:20 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
add numbers in shell script
cat dailyreports | grep "Important list" | awk -F":" '{print $2}' | awk -F" " '{print $1}'
hey guys, after running the above combination of cat and awk, i get the below output: 3 4 2 9 now, i need to add these numbers up all in one line. i dont know what to add to that cat and awk one liner to accomplish this addition. can someone please help me? thanks |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|