title: bash script for copying files between directories
body: <p>I am writing the following script to copy *.nzb files to a folder to queue them for Download.</p>
  
  <p>I wrote the following script </p>
  
  <pre><code>#!/bin/bash
  
  #This script copies NZB files from Downloads folder to HellaNZB queue folder.
  
  ${DOWN}="/home/user/Downloads/"
  ${QUEUE}="/home/user/.hellanzb/nzb/daemon.queue/"
  
  
  for a in $(find ${DOWN}  -name  *.nzb)
  do
  cp ${a} ${QUEUE}
  rm *.nzb
  done
  </code></pre>
  
  <p>it gives me the following error saying:</p>
  
  <pre><code>HellaNZB.sh: line 5: =/home/user/Downloads/: No such file or directory
  HellaNZB.sh: line 6: =/home/user/.hellanzb/nzb/daemon.queue/: No such file or directory
  </code></pre>
  
  <p>Thing is that those directories exsist, I do have right to access them. </p>
  
  <p>Any help would be nice.</p>
  
  <p>Please and thank you.</p>