Sample Header Ad - 728x90

Removing number after decimal point

3 votes
3 answers
4335 views
I have an input file with these fields: ENST00000456328.2 1657 1350.015 0 0 I am trying awk to remove the number after the decimal and print the rest as it is awk -F[.] '{print $1"\t"$2"\t"$3}{next;}' But it doesn't work, as it gives an output like this: ENST00000456328 2 1657 1350 015 0 0 Can someone help. regards.
Asked by user1738234 (87 rep)
Jan 3, 2020, 06:29 PM
Last activity: Apr 21, 2024, 12:39 AM