Hi, I try as you suggest but it seems that not recognize the key in the script, therefore I have a error
./assembly.sh
./assembly.sh:6: ./assembly.sh: Bad substitution
This the script
for i in *_1.fq
do
read1=${i/.fq/}
read2=${read1/_1/_2}
/home/fernado/megahit/megahit -1 $read1 -2 $read2 -o assembly$i
done