Last active
August 29, 2015 14:06
-
-
Save Gen2ly/4186410bfb6f32c3abc6 to your computer and use it in GitHub Desktop.
A curl general download wrapper
This file contains hidden or 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
#!/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