I have the following dataset (all positive values)
Input file
1 2.3456
1 5.02
2 3.9763333
2 0.123
I would like to truncate the numbers in the second column and discard its non-integer part.
How would one do it in awk?
Desired output file
1 2
1 5
2 3
2 0
Thanks for your help.