Skip to content

Instantly share code, notes, and snippets.

@mujtaba3B
Last active October 26, 2016 06:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mujtaba3B/8133473035e23fd08f39 to your computer and use it in GitHub Desktop.
Save mujtaba3B/8133473035e23fd08f39 to your computer and use it in GitHub Desktop.
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
@mujtaba3B
Copy link
Author

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