#Ids are in test.txt - one ids per line
#sequences are in test.fa
grep -w -A 2 -f test.txt test.fa --no-group-separator
# seqtk
seqtk subseq test.fa test.txt
#faSomeRecods
faSomeRecords in.fa listFile out.fa
# seqkit
seqkit grep -n -f list.txt sequences.fas > newfile2.fas