title: Shell script to loop over the list of strings
body: <p>Below is my variable declaration and in the shell script, I am looking for a way to loop over the list of strings to get each item.</p>
  <pre><code>output='['a.txt', 'b.txt', 'c.txt', 'd.txt']'
  </code></pre>
  <p>I tried the script below but it is not working as expected</p>
  <pre><code>for i in &quot;${output}&quot;; do
      echo $i
     
  done
  </code></pre>
  <p>Expected result:</p>
  <pre><code>a.txt
  b.txt
  c.txt
  d.txt
  </code></pre>