Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
The problem statement, all variables and given/known data:
I want add a line.For example:-
123456 1 1 0 1 1 0 1 0 0 0 1 5 8 0 12 10 25
its answer should be like this 66
i mean answer is total of 123456 line.
How to do it?
Relevant commands, code, scripts, algorithms:
i am using Bourne shall
The attempts at a solution (include all code and scripts):
i am using this code but its not working it display
123456
i don't know
awk '{ sum += $1 } END { print sum }' abc
Complete Name of School (University), City (State), Country, Name of Professor, and Course Number (Link to Course):
Humber College,Toronto,ON,Canada,Mohammod,ITS-510
Note: Without school/professor/course information, you will be banned if you post here! You must complete the entire template (not just parts of it).
---------- Post updated 11-08-11 at 04:37 PM ---------- Previous update was 11-07-11 at 10:44 PM ----------
But I want to take input from abc file and its output display in another file.I mean i have abc file which have:
123456 1 1 0 1 1 0 1 0 0 0 1 5 8 0 12 10 25