I try to make a small script, using c shell, that will take a file made of several lines, each containing a name and a number and sum all numbers that a have certain name. How can I put into a variable the next line each time?
the summig part I do by: (after I'll be able to get a full line to $line)
set line =($line)
@ sum = $sum + $line[2]
csh
questions to post that link but whenever I See it mentioned (I came across this question due to theunix
tag), I bring it up since it is quite crippling. I've worked with it for 2 years or so and really wished that people had tossed it away before they started. – Cybil