-
-
Save mujtaba3B/8133473035e23fd08f39 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 0 999 | xargs -I {} date -u --date='2014-04-05 {} day ago' +%Y-%m-%d | \ | |
xargs -I {} curl --progress-bar -f --no-include -o {}.tsv.gz \ | |
-L -H "X-Papertrail-Token: papertrail_api_key" https://papertrailapp.com/api/v1/archives/{}/download |
error:
date: illegal option -- -
usage: date [-jnu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ...
[-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Copied from http://help.papertrailapp.com/kb/how-it-works/permanent-log-archives#downloading-multiple-archives.