My input is like this:pak_c35079_g1_i1|m.14890    Pfam  pak_c20797_g1_i1|m.3458     ProDom  pak_c20797_g1_i1|m.3458     Pfam  pak_c28265_g1_i3|m.9595     TIGRFAM  pak_c28265_g1_i3|m.9595     Pfam  .  .  .  I want an output like this:pak_c35079_g1_i1|m.14890    Pfampak_c28265_g1_i3|m.9595     TIGRFAMpak_c28265_g1_i3|m.9595     Pfam   Meaning that if a value is repeated in next line (in column A), than delete both lines.
Remove both lines if column A values are repeated in next row
shell;text processing;sed;awk;scripting
You can do it with awk:awk 'BEGIN {last=; last_line=} { if (last == $1) {} else {print last_line} last=$1; last_line = $0}' < file_to_proceedI'm not an awk expert, you will have problems with last line...