I am trying to make a small script using c shell, which will take a file of several lines, each of which contains a name and a number and summarizes all numbers that have a specific name. How can I add the following line to a variable each time?
the summig part I am doing: (after I can get the full line up to the $ line)
set line =($line)
@ sum = $sum + $line[2]
source
share