Skip to main content

Loop/iterate curl url and save as file

curl https://example.org/index.php?id=[1-10000] -O -f

[1-10000] iterates from 1 to 10000

-O (upper character o) creates the file based on the current url

-f fails silently if 404 is returned