I was attempting to run a program from the terminal, so I wrote the following command:
$ for infile in *_1.fastq.gz > do > base=$(basename ${infile} _