Link to home
Start Free TrialLog in
Avatar of btocakci
btocakciFlag for Türkiye

asked on

adding

hi!
i want to write a shell command that will find the sum of the numbers in a file..
how can i do this?
thanks..
ASKER CERTIFIED SOLUTION
Avatar of sunnycoder
sunnycoder
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of btocakci

ASKER

hi sunnycoder!

an error occurred..
at line three expr+1 : command not found

what is the reason??

thanks
there needs to be a space on the either side of + sign
thanx..
Hi,

What does the file content look like?
1 3 5 8 9 6 45 65  lets say..
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial