title: Cat command giving " No such file or directory"
body: <p>I am trying to use this script to create a list of files names (including their path) and have each path separated by a comma so ideally, an output would look like: file1.txt,file2.txt,file3.txt ...etc. How do I go about this?</p>
  
  <pre><code>#!/bin/bash
  LEFT=/home/ndevon/USER/SRA/PE/*_1.fastq.gz
  for f in $LEFT; do
       cat "${f}," &gt;&gt; /home/ndevon/USER/left_list.txt 
  done
  </code></pre>