title: bash string length in a loop
body: <p>I am looping through a folder and depending on the length of files do certain condition. I seem not to come right with that. I evaluate and output the length of a string in the terminal.</p>
  
  <pre><code>    echo $file|wc -c gives me the answer of all files in the terminal. 
  </code></pre>
  
  <p>But incorporating this into a loop is impossible</p>
  
  <pre><code>    for file in `*.zip`; do
      if [[ echo $file|wc -c ==9]]; then 
      some commands
  </code></pre>
  
  <p>where I want to operate on files that have a length of nine characters</p>