Skip to content

Instantly share code, notes, and snippets.

@Gen2ly
Last active Aug 29, 2015
Embed
What would you like to do?
A curl general download wrapper
#!/usr/bin/bash
# A curl general download wrapper
# curl alias for:
# -l : redirect automatically
# -O : output filename is remote name
# -# : progress bar
# -w : (--write-out) print filename
# -A : user agent
# : resume difficult (wget -c, better): http://tinyurl.com/7umwyl3
for u in "$@"; do
curl -l -O -# -w "%{filename_effective}\n" -A "Mozilla/4.0" "$u"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment