Hi guys,
I am trying to write a for loop in the terminal (im on a mac) to convert several .sra files to fastq format.
SO this command works for just a single file:
./sratoolkit.2.3.2-5-mac-64/bin/fastq-dump ./SRR770514.sra
Now I'm trying to use a for loop to do the same thing for multiple files. This is what I have:
for fn in *.sra
do ./sratoolkit.2.3.2-5-mac-64/bin/fastq-dump ./"$fn".sra
done
but its not working...i've tried several variations..like "$fn.sra" and even tried without the quotes but nothing works..please help
I am trying to write a for loop in the terminal (im on a mac) to convert several .sra files to fastq format.
SO this command works for just a single file:
./sratoolkit.2.3.2-5-mac-64/bin/fastq-dump ./SRR770514.sra
Now I'm trying to use a for loop to do the same thing for multiple files. This is what I have:
for fn in *.sra
do ./sratoolkit.2.3.2-5-mac-64/bin/fastq-dump ./"$fn".sra
done
but its not working...i've tried several variations..like "$fn.sra" and even tried without the quotes but nothing works..please help
Comment