here is csv file
xerox @DDCM READY 2
xerox xerox READY 3
i need to get column 1,3,4 values. but column 4 is differnt so need to get sum.
i would like to get value of column 4 from first line and then sum up with second line (2+3=5)
You don't need to initialize 'total'. All variable are strings by default and initialized to an empty string (""). Once you start performing arithmetic, an empty string is casted to 0.
Hi guys,
the awk command is working fine.can you please let me know how i can get the value of sum.I need to pass this sum value to java program as parameter.
thanks,
Sagii