I have a tab-separated file that looks like this:
$ cat in_file
NC_013132.1 7260299 7261429 WP_012793281.1
NC_013132.1 7270674 7270862 NC_013132.1 7270674 7270862 ID=cds5678
NC_013132.1 7573559 7574311 WP_012793549.1
NZ_CP022095.2 2809552 2809629 NZ_CP022095.2 2809552 2809629 ID=cds2731
NZ_CP022095.2 2884046 2885668 WP_003877393.1
NZ_CP022095.2 3106358 3106435 NZ_CP022095.2 3106358 3106435 ID=cds2976
I want to delete lines that start with NC
or NZ
in column 4. I tried doing it with awk -F '\t' '$4 != "^NC | ^NZ"' in_file
but it didn't work.
The output should look as follows:
$ cat out_file
NC_013132.1 7260299 7261429 WP_012793281.1
NC_013132.1 7573559 7574311 WP_012793549.1
NZ_CP022095.2 2884046 2885668 WP_003877393.1