I want to download a specific file to a specific folder on the server using lftp
.
The problem is that when I download the file, it stays in the root folder.
How do I download the file to my home?
Example code:
host_File=$(lftp -e "open -u ${user},${pass}; ls; exit" $host_SFTP |
grep "$date" | grep -oE "$host_File")
lftp -e "-u $user, $passc; get $host_File; exit" $host_SFTP