magic_script dirdata dirfinal file1.txt
$0 is the script_name (magic_script)
$1 first argument dirdata
$2 second argument dirfinal
$3 third argument file1.txt
ftp -divn XXX.XXX.XX0 << EOF!
user user pass
cd /home/dir1/dir2/dir3/"$1"
lcd/home/dir11/dir22/dir33/"$2"
get "$3"
bye
EOF!