Skip to content

Instantly share code, notes, and snippets.

@tisseurdetoile
Created January 22, 2017 19:26
Show Gist options
  • Save tisseurdetoile/070401dc5f6587019fab31a4fb7ba1f3 to your computer and use it in GitHub Desktop.
Save tisseurdetoile/070401dc5f6587019fab31a4fb7ba1f3 to your computer and use it in GitHub Desktop.
fetch file ending with the alphet letter with curl pretending to firefox 3 on windows xp
#!/bin/bash
# fetch file ending with the alphet letter
# with curl pretending to firefox 3 on windows xp
#
for x in {a..z}
do
echo "http://www.website.com/letter_$x.pdf"
curl -silent -A "Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3" --remote-name http://www.website.com/letter_$x.pdf
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment