Created
November 27, 2013 12:43
-
-
Save tot-ra/7675047 to your computer and use it in GitHub Desktop.
bash script to download file(s) over ftp to local dir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
lftp -u login,pass ftp://login@example.com <<EOF | |
mget -d -O /local/path/to/save/to /remote/path/to/dir/*.BIN | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment