I have a line of bash:
SAMPLES=$(for f in `find $IN -iname *fastq.gz `; do basename $f | cut -c 1-4; done | sort | uniq)
which I am attempting to break up into multiple line for the purpose of commenting each of them. I'd like something like the following, with comments on each line or after the line:
SAMPLES=
#comment
$(for f in `find $IN -iname *fastq.gz `; \
#comment
do basename $f |
#comment
cut -c 1-4; done |
#comment
sort |
#comment
uniq)
I've seen both this, and this, but they don't have the $()
evaluation, or the for loop, which is throwing me off. Any input appreciated.