source ~/.zshrc
 
# necessary to split the crosses string
set -o shwordsplit
crosses="101 116 6 211 98 136 208 189 198 174 3 168"
for c in $crosses
do
    # store the commands in variable
    c1="bwa bwasw -t 2 ~te1/refg/DsimVPG/dsimVPG-combinedTE.fasta trim/Dsim_${c}_1.tr.fq.gz.gz > mapsw/Dsim_${c}_1.sai 2> /dev/null &"
    c2="bwa bwasw -t 2 ~te1/refg/DsimVPG/dsimVPG-combinedTE.fasta trim/Dsim_${c}_2.tr.fq.gz.gz > mapsw/Dsim_${c}_2.sai 2> /dev/null &"
 
    # execute the commands
    eval $c1
    eval $c2
done