Skip to content

Instantly share code, notes, and snippets.

@mbbroberg
Created September 3, 2014 19:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mbbroberg/a0d599c1c0675ec0d937 to your computer and use it in GitHub Desktop.
Save mbbroberg/a0d599c1c0675ec0d937 to your computer and use it in GitHub Desktop.
Emulate curl with wget
# 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