![]() |
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 |
| not able to capture STDOUT | aks__ | UNIX for Dummies Questions & Answers | 5 | 04-25-2008 03:12 AM |
| stdout back to tty | piltrafa | UNIX for Dummies Questions & Answers | 3 | 07-03-2007 02:42 PM |
| cut -d' ' -f7,8 on the stdout of ls -al | yongho | Shell Programming and Scripting | 9 | 02-15-2007 12:28 PM |
| stdout redirected? | Naanu | SUN Solaris | 1 | 02-11-2007 12:03 PM |
| pipe and stdout | vascobrito | UNIX for Dummies Questions & Answers | 3 | 02-02-2004 08:20 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
sum numbers from stdout
hello im looking for short way to sum numbers from stdout the way i found to do it is to long for me i wander if there is shorter way to do it
ok it 2 stage action this will make the list of number in to file sum.txt grep -c include *.c | awk '{l=split($0,a,":");print a[2];}' > sum.txt this will print the sum from the file awk 'BEGIN {total=0} {total += $1} END {print total}' sum.txt is there any way to make this action shorter? |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|