I'm trying to get a bash script working for a program (bowtie) which takes a list of input files (*.fastq) and assembles them to an output file (outfile.sam). All the .fastq files are in one folder in my home directory (~/infiles).
The problem is that the 'bowtie' requires that the input files are separated by a comma and with no space in between. E.g.:
./test2.sh: line 3: syntax error near unexpected token `my_variable=`echo $my_variable$i`'
./test2.sh: line 3: `for i in *.fastq; my_variable=`echo $my_variable$i`; done'