title: Make directories incrementally, move file into directory - loop
body: <p>I'm trying to create a script that will run through a list of files and for each file create an incremental directory and then move that file into the new directory. I'm stuck on getting the file to move.</p>
  
  <pre><code>n=1
  
  for file in /Users/scrawfo/Desktop/untitled\ folder/*.zip; do   
      mkdir /Users/scrawfo/Desktop/untitled\ folder/test/$((n++))
      sleep 5s
      mv $file /Users/scrawfo/Desktop/untitled\ folder/test/"$((n++))" 
  done
  </code></pre>