title: how to display files in shell script
body: <p>I have few files in BrowserStack and I want to display file name and then I want to delete that file with given custom_id. (BELOW IS SAMPLE OUTPUT)</p>
  <pre><code>[
    {
      &quot;custom_id&quot;: &quot;abcapp&quot;,
      &quot;app_id&quot;: &quot;abcapp&quot;
     },
    {
      &quot;custom_id&quot;: &quot;xyzapp&quot;,
      &quot;app_id&quot;: &quot;xyzapp&quot;
    },
    {
      &quot;custom_id&quot;: &quot;abcapp&quot;,
      &quot;app_id&quot;: &quot;abcapp&quot;
    },
    {
      &quot;custom_id&quot;: &quot;xyzapp&quot;,
      &quot;app_id&quot;: &quot;xyzapp&quot;
    },
    {
      &quot;custom_id&quot;: &quot;abcapp&quot;,
      &quot;app_id&quot;: &quot;abcapp&quot;
    },
    {
      &quot;custom_id&quot;: &quot;abcapp&quot;,
      &quot;app_id&quot;: &quot;abcapp&quot;
    }
  ]
  </code></pre>
  <p>I wrote shell script where I want to display &amp; delete files</p>
  <pre><code>#!/bin/bash
  for var in $(curl -u &quot;xyz_u9sXFH:pqRfaqxRQpmxyJmzEqx&quot; -X GET &quot;https://api-cloud.browserstack.com/app-automate/recent_apps&quot; | jq '.[] | select(.app_id==&quot;abcapp&quot;)' | jq '.app_id')
  do
     echo &quot;Deleting $var&quot;
     curl -u &quot;xyz_u9sXFH:pqRfaqxRQpmxyJmzEqx&quot; -X DELETE &quot;https://api-cloud.browserstack.com/app-automate/app/delete/$var&quot;
  done
  </code></pre>
  <p>I am very new to shell script, so don't know what's wrong with it.</p>