Skip to content

Instantly share code, notes, and snippets.

@tot-ra
Created November 27, 2013 12:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tot-ra/7675047 to your computer and use it in GitHub Desktop.
Save tot-ra/7675047 to your computer and use it in GitHub Desktop.
bash script to download file(s) over ftp to local dir
#!/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