title: ls in awscli returns "PRE". Why and how to get rid of it
body: <p>Using awscli in git bash, the command </p>
  
  <pre><code>aws s3 ls "s3://directory/"
  </code></pre>
  
  <p>returns a list of</p>
  
  <pre><code>PRE "filename"
  </code></pre>
  
  <p>This is inconvenient as I need to do further commands on the output and I only need the file/directory names within the given directory.</p>
  
  <p>For instance, it would be nice to be able to do:</p>
  
  <pre><code>for dir in $(aws s3 ls s3://directory/) do
   aws s3 ls $dir | grep .json;
  done
  </code></pre>
  
  <p>Any suggestions to work around this?</p>