Created
February 27, 2016 04:00
-
-
Save am5a03/00923cb027049956b6c0 to your computer and use it in GitHub Desktop.
Download a sequence of file in command
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
seq 1 10 | xargs -n1 -P2 bash -c 'i=$0; url="http://example.com/?page${i}.html"; curl -O -s $url' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment