Created
October 23, 2018 12:01
-
-
Save Summertime/7954f0031432b6b32459a7f08ee57a7b to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/dash | |
seq 1000000 | | |
sed 's|^|https://example.com/|' | | |
xargs -P20 -n1000 \ | |
curl -sSNL -X HEAD --retry 5 -w '%{http_code},%{url_effective}\n' | | |
tee urls.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment