#!/usr/local/bin/bash # run clustalw for i in ND1 ND2 COX1 COX2 ATP8 ATP6 COX3 ND3 ND4L ND4 ND5 CYTB ; do echo 1 echo work-$i.psq echo 2 echo 1 echo echo echo X echo done > clustalrun.txt echo X >> clustalrun.txt clustalw < clustalrun.txt > clustallog.txt