Skip to content

Instantly share code, notes, and snippets.

@mujtaba3B
Last active October 26, 2016 06:45
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

Uh oh!

There was an error while loading. Please reload this page.

@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