cutadapt -h cd data foreach i ( *fastq ) echo "(cutadapt -a ATCTCGTATGCCGTCTTCTGCTTG -m 16 -M 28 -o 2_cutadapt/$i.cut.fq data/$i) >& 2_cutadapt/$i.cut.log" >> ../2_cutadapt.jobs end cd .. qarray -q test.q -o 2_cutadapt -e 2_cutadapt -N cadapt 2_cutadapt.jobs