Answers for "awk column decimal to integer"

0

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
Posted by: Guest on June-10-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language