Skip to content

Instantly share code, notes, and snippets.

@nickwaelkens
Created February 12, 2014 11:00
Show Gist options
  • Save nickwaelkens/8953484 to your computer and use it in GitHub Desktop.
Save nickwaelkens/8953484 to your computer and use it in GitHub Desktop.
Upload to FTP (useful for in Automator)
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