This downloads FASTA files for the nucleotide and protein sequences of a few SARS-like viruses:
$printf %s\\ n NC_ 045512\ sars2 NC_ 004718\ sars1 MN996532\ ratg13 MG772933\ zc45 MG772934\ zxc21 MZ937000\ banal52 > accession $ cat accession| while read l m; do curl -s " https:// eutils. ncbi. nlm. nih. gov/ entrez/ eutils/ efetch. fcgi? db=nuccore& rettype=fasta& id=$ l" >$ m. fa; done $ cat accession| while read l m; do curl -s " https:// eutils. ncbi. nlm. nih. gov/ entrez/ eutils/ efetch. fcgi? db=nuccore& rettype=fasta_ cds_ aa& id=$ l" >$ m. aa; done $ head -n3 sars2. fa > NC_ 045512. 2 Severe acute respiratory syndrome coronavirus 2 isolate Wuhan- Hu- 1, complete genome A T T A A A G G T T T A T A C C T T C C C A G G T A A C A A A C C A A C C A A C T T T C G A T C T C T T G T A G A T C T G T T C T C T A A A C G A A C T T T A A A A T C T G T G T G G C T G T C A C T C G G C T G C A T G C T T A G T G C A C T C A C G C A G T A T A A T T A A T A A C $ head -n3 sars2. aa > lcl| NC_ 045512. 2_ prot_ YP_ 009724389. 1_ 1 [gene=ORF1ab] [locus_ tag=GU280_ gp01] [db_ xref=GeneID: 43740578] [protein=ORF1ab polyprotein] [exception=ribosomal slippage] [protein_ id=YP_ 009724389. 1] [location=join( 266.. 13468, 13468.. 21555)] [gbkey=CDS] M E S L V P G F N E K T H V Q L S L P V L Q