I want to delete all the Lines of File 1, if Column1 of File1 matches exactly with Column 1 File2.
File 1:
r001:21:10 21 AAAAAATTTGC * = XM:21
r002:21:10 21 YAAAATTTGC * = nM:21
r001:21:10 21 TTAAAATTTGC * = XM:21
r0012:21:10 21 LLAAAATTTGC * + XM:21
r001:21:10 21 AAAAAATTTGC * = GM:21
File2:
r001:21:10
r001:21:20
r002:41:36
r002:41:99
r002:41:87
r0012:21:1
Expected Output:
r002:21:10 21 YAAAATTTGC * = nM:21
r0012:21:10 21 LLAAAATTTGC * + XM:21
awk
implementations to fail without it. – Stéphane Chazelas Feb 28 '14 at 13:05awk
implementation that does. I once raised it to the autin group – Stéphane Chazelas Feb 28 '14 at 13:09;
or newline between condition+action pairs. The standard does not require support forawk '/x/{print} {print}'
and this is intentional. (actually the gawk maintainer objected to it). – Stéphane Chazelas Sep 08 '15 at 14:38