fastacmd -d SeqFileName -s NP_523822 > 1.fasta fastacmd -d SeqFileName -s NP_477425 > 2.fasta fastacmd -d SeqFileName -s NP_523453 > 3.fastaThe command line to combine the above 5 files into one file, and called the combined file as my.fasta:
cat 1.fasta 2.fasta 3.fasta > my.fasta