#!/bin/bash if [ $# -ne 1 ]; then echo "Wrong number of parameters." echo "Usage: count_ATs.sh " exit fi export file=$1 fasta_stats $file | \ grep 'unit:AT' | \ grep 'dinucleotide' | \ wc