title: Simple Bash Script File Copy
body: <p>I am having trouble with a simple grading script I am writing.  I have a directory called HW5 containing a folder for each student in the class.  From my current directory, which contains the HW5 folder, I would like to copy all files starting with the word mondial, to each of the students' folders. My script runs but does not copy any of the files over.  Any suggestions?</p>
  
  <pre><code>#!/bin/bash                                                                                                         
  
  for file in ./HW5; do
      if [ -d $file ]; then
          cp ./mondial.* ./$file;
      fi
  done
  </code></pre>
  
  <p>Thanks,</p>