title: bash loop to change permissions
body: <p>I'm trying to change all the permissions for the files in my ~/Documents folder and I thought the following little loop would work, but it doesn't seem to be working. Can anyone help me? Here's the loop: </p>
  
  <pre><code>files=~/Documents/*
  for $file in $files {
     chmod 755 $file }
  </code></pre>
  
  <p>I'm trying to write this directly into the bash command line gives me the following error:</p>
  
  <pre><code>-bash: syntax error near unexpected token `chmod'
  </code></pre>
  
  <p>thanks for your help/advice</p>