#!/bin/bash if [ ! -e swissprot.db ]; then echo "Downloading, extracting and converting Swissprot database, this may take a while..." wget -O- "ftp://ftp.uniprot.org/pub/databases/uniprot/current_release/knowledgebase/complete/uniprot_sprot.fasta.gz" | \ gzip -d | sed 's/^>.*$/\t/;1d' | tr -d '\n' | tr '\t' '\n' > swissprot.db fi echo "Searching for regular expressions in database..." echo "Total number of proteins in database: $(wc -l < swissprot.db) - so this may take a while..." cat <