http://qs321.pair.com?node_id=1076180


in reply to Re: A program to extract the reads and modify the seq ID
in thread A program to extract the reads and modify the seq ID

Your script only prints the sequences and not the header with the OP's wanted appended info.