I have the following bash script:
#!/bin/bash
for r in $(find . -name "*.fastq");
do
cat <<EOF
#qsub <<EOF
#!/bin/bash -l
#PBS -N $r
EOF
done
Unfortunately, all filename get split:
> sh cFiltering_pbs.sh
#qsub <<EOF
#!/bin/bash -l
#PBS -N ./76A
#qsub <<EOF
#!/bin/bash -l
#PBS -N Paired.fastq
#qsub <<EOF
#!/bin/bash -l
#PBS -N ./104A
#qsub <<EOF
#!/bin/bash -l
#PBS -N Paired.fastq
Here is the find output:
find . -name "*.fastq"
./76A Paired.fastq
./104A Paired.fastq
What did I miss?
for r in $(find . -name "*.fastq");is pretty bad...fastqfiles in the same directory?