Sample Header Ad - 728x90

delete specific rows from a tab separted file

-2 votes
1 answer
262 views
I have a tab separated file, which has 6 columns, but some rows are not so: enter image description here There are many such lines in my file like the 7th. When I write
awk '{print $1"\t"$2"\t"$3"\t"$5"\t"$6}' filename
it still gets retained. How do I get rid of such entries ? Kindly help.
Asked by user1738234 (87 rep)
Jul 27, 2020, 10:02 AM
Last activity: Jul 27, 2020, 10:43 AM