title: Bash script is throwing the error of "missing operand" when ran
body: <p>I am new to bash and am attempting to take in 2 arguments,  and Argument 1 is the name of the new directory where the copied file will go. Argument 2 is the file to be copied. Argument 3 is the name of the new file. However, I keep getting the mkdir missing operand error message when running it. Thank you for any help!!</p>
  <pre><code>    #!/bin/bash
      dir=$1
      oldFile=$2
      newFile=$3
      mkdir $dir
      cp $2 $dir
      cd $dir
      mv $2 $3
  </code></pre>