in reply to Extracting IDs from fasta file
This isn't a code writing service. Consider actually reading and understanding the links given here.