Suppose there is a file, which contains:
 
a 12
b 14
g 9
p 58
d 25
t 18
w 32
 
 
The two fields are seperated by space.
If we have to add all the numbers of second field using script file, it can be done using cut -d" " -f2 /file
 
Can any one help to write a script file which adds the number from third line to sixth line only.
 
Any help will be highly appreciated!!
 
Shre
 

Reply via email to