Extract FASTA records
The file ids.txt contains a column of IDs identified as interesting in some way.
Use blastdbcmd to extract just those sequence records from the orf_trans database as a FASTA file named ids.fasta. Again, browsing the BLAST+ manual and the output of blastdbcmd -help will be useful.
ids.fasta existsids.fasta contains the FASTA sequences of sequences with IDs stored in ids.txt.