awk column decimal to integer code example
Example: awk column decimal to integer
# parenthesize float variable w/ int()
awk -F ' ' '{print $1" "$2" "int($3)}' data.lst
# NOTE: trims off decimal values, does not round
# parenthesize float variable w/ int()
awk -F ' ' '{print $1" "$2" "int($3)}' data.lst
# NOTE: trims off decimal values, does not round