I have a script that loops over my files, combine two files and run a python script. However, if I run this, I get a error:
Syntax error: end of file unexpected (expecting "done")
What is wrong with my script?
#!/bin/sh
for file1 in *R1*fastq
do
file2=${file1/R1/R2}
out=${file1%%.fastq}_output
python spades.py --careful -1 $file1 -2 $file2 -o $out
done