How to truncate of a real value and discard its non-integer part in awk? December 23, 2023 by Tarik try the int() function awk '{$2=int($2)}1' file