Download multiple similarly named files.
Section: Downloads
Download a numbered range
bash
bash
curl -O 'https://example.com/logs/app[1-5].txt'Explanation
Use bracket ranges for bulk downloads.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Downloads
URL globbing with lists
Download several related URLs using brace expansion.
Save using Content-Disposition filename
Use server-provided filename from headers.
Create local directories
Create local directories automatically for output paths.
Retry on all errors
Retry on all errors, including transient HTTP failures when appropriate.