thank you, Zhilong Jia, this works perfect! Could you please also explain the logic of your command, I am not an expert of Unix, therefore I can't apply this command to my real file, as it has more columns. my thoughts: awk - for pattern searching gsub -catches the end of the line
Thank you
p.s.: I would still like to get it in Python as well ;) I would like to get the idea of manipulating files with this type of task.
what have you tried ?
good point Pierre, I forgot to share with my achievements.
so far I manage:
gives:
However the info of sequence 4 is missing and empty lines !!!!