# Stop on error set -uex # Download the existing file. wget -nc http://data.biostarhandbook.com/books/corona/data/meta.txt.gz # Unzip the file. gunzip meta.txt.gz # Get a most up to date version of the metadata. # bio meta 2697049 > meta.txt # What are tge different hosts cat meta.txt | bio uniq -c -f 3 | head # Show the scientific names for all hosts infected by sars2 cat meta.txt | bio uniq -f 3 | bio taxon --depth 1 | column -ts , # Earliest samples from China cat meta.txt | csvcut -c 1,4,5 | grep '2019-12' | grep China | sort -t , -k2 | head