Search Results

Search: Posts Made By: thh
40,782
Posted By thh
sum total by column
Hi, i try to use the code that given.. but it gave me a syntax error:

awk: line 1: syntax error at or near =

is this the correct way to use this code?

awk -F" " 'BEGIN {FS = "[ :]"x = 0}{ ...
40,782
Posted By thh
sum total by column
Hi, i have a file which content the following:

>cat cols
data a:23:data
data b:76:data
data c:-30:data

i would like to sum up the value of column 2, but the result that return to me is 0....
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 03:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy