title: FTP filemove in shell script
body: <p>I need to move a file from one server to another FTP server using Shell Script.</p>
  
  <pre><code>#!/bin/sh
  HOST='ftp.server.com'
  USER='username'
  PASSWD='password'
  FILE='"/a/b/test.sh"'
  DIR='/x/y/'
  
  ftp -n $HOST &lt;&lt;END_SCRIPT
  quote USER $USER
  quote PASS $PASSWD
  cd $DIR
  put $FILE
  quit
  END_SCRIPT
  exit 0
  </code></pre>
  
  <p>Here my question is,</p>
  
  <p>I need to select a file from the server and put it into the FTP's particular location. My original file is in <code>/a/b/test.sh</code> path. That should be moved to <code>/x/y</code> path of FTP.</p>
  
  <p>What am I missing.. I am new to shell script. </p>