Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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