Created
February 12, 2014 11:00
-
-
Save nickwaelkens/8953484 to your computer and use it in GitHub Desktop.
Upload to FTP (useful for in Automator)
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
while read f | |
do | |
x="$f" | |
x=${x// /%20} | |
x=${x##*/} | |
curl -u username:password ftp.host.com -T "$f" && echo host.com/"$x" | pbcopy | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment