title: convert path to string bash
body: <p>I want to put multiple filepaths as a string in bash script, so I can pass this string to another program.
  When I concatenate these filepaths I get the error: No such file or directory. Bash has to tread this filepath as a string instead of a file...</p>
  
  <p>Im concatenating this way:</p>
  
  <pre><code>all=""
  for path in $dir/*; do
      filePath="$path/file.txt"
      $all="$all I=$filePath"
  done
  
  echo $all
  </code></pre>
  
  <p>How can I get this output?</p>
  
  <pre><code>I=first/file.txt I=second/file.txt etc.
  </code></pre>