![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| cat operation | trichyselva | UNIX for Dummies Questions & Answers | 0 | 03-24-2008 06:55 AM |
| Array operation | phamp008 | Shell Programming and Scripting | 3 | 01-18-2008 05:31 AM |
| Help with arithmetic operation | emjayshaikh | Shell Programming and Scripting | 3 | 09-24-2007 12:44 AM |
| RPC failure on yp operation | Remi | SUN Solaris | 1 | 05-22-2007 11:15 AM |
| AIX 4.3 Openssh 3.7.1.0 Operation | ripley | AIX | 2 | 03-07-2005 01:56 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Problems with sum operation
i wrote this code..
#!/bin/sh sum=0 for i in `cat numbers.txt |cut -f1` do sum=expr $sum + $i done echo $sum I want to read the numbers in the file numbers.txt. and find sum of them. But this code only writes the numbers(without making sum) that it reads. Help me.. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|