Created
September 3, 2014 19:47
-
-
Save mbbroberg/a0d599c1c0675ec0d937 to your computer and use it in GitHub Desktop.
Emulate curl with wget
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
# Emulate curl with wget | |
ARGS=$(echo "$*" | sed -e 's/--progress-bar /--progress=bar /' \ | |
-e 's/-L //' \ | |
-e 's/-I /--server-response /' \ | |
-e 's/-s /-q /' \ | |
-e 's/-o /-O /' \ | |
-e 's/-C - /-c /') | |
wget $ARGS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment