title: shell script to copy files from one directory to another
body: <p>Trying to write a simple script to copy some files in OS X 10.9.
  Here's the content..</p>
  
  <pre><code>SRC_DIR="~/Library/Preferences-Old"
  
  DST_DIR="~/Library/Preferences"
  
  FILEN="test.txt"
  
  cp $SRC_DIR/$FILEN $DST_DIR
  </code></pre>
  
  <p>Gives me the output:</p>
  
  <pre><code>cp: ~/Library/Preferences-Old/test.txt: No such file or directory
  </code></pre>
  
  <p>Of course, the above is wrong. The exact same cp command in terminal directly does the trick. What am I doing wrong here?</p>