Skip to content

Instantly share code, notes, and snippets.

@Gen2ly
Created September 4, 2014 14:52
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 Gen2ly/a443b6161230f0bd0bef to your computer and use it in GitHub Desktop.
Save Gen2ly/a443b6161230f0bd0bef to your computer and use it in GitHub Desktop.
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