Re: Extracting lines from text files - script with a couple of 'side effects'

2013-09-26 Thread mstagliamonte
Hi, Thanks for the answers! And Dave, thanks for explaining the cause of the problem I will keep that in mind for the future. You're right, I am doing the search backward, it just seemed easier for me to do it in that way. Looks like I need to keep practising... Both your suggestions work, I w

Re: Extracting lines from text files - script with a couple of 'side effects'

2013-09-25 Thread MRAB
On 25/09/2013 21:06, mstagliamonte wrote: Dear All, Here I am, with another newbie question. I am trying to extract some lines from a fasta (text) file which match the headers in another file. i.e: Fasta file: header1|info1:info2_info3 general text header2|info1:info2_info3 general text he

Re: Extracting lines from text files - script with a couple of 'side effects'

2013-09-25 Thread Dave Angel
On 25/9/2013 16:06, mstagliamonte wrote: > Dear All, > > Here I am, with another newbie question. I am trying to extract some lines > from a fasta (text) file which match the headers in another file. i.e: > Fasta file: >>header1|info1:info2_info3 > general text >>header2|info1:info2_info3 > gener

Extracting lines from text files - script with a couple of 'side effects'

2013-09-25 Thread mstagliamonte
Dear All, Here I am, with another newbie question. I am trying to extract some lines from a fasta (text) file which match the headers in another file. i.e: Fasta file: >header1|info1:info2_info3 general text >header2|info1:info2_info3 general text headers file: header1|info1:info2_info3 header2|