Skip to content

Instantly share code, notes, and snippets.

@marcusdb
Created May 17, 2016 20:07
Show Gist options
  • Select an option

  • Save marcusdb/94c28523f7aa75ab44dc48a1ccbb5c93 to your computer and use it in GitHub Desktop.

Select an option

Save marcusdb/94c28523f7aa75ab44dc48a1ccbb5c93 to your computer and use it in GitHub Desktop.
finding in s3
finding in xml files
aws s3 ls --recursive s3://bucket/ | awk '{print $4}' | grep '.xml' | xargs -I@ aws s3 cp s3://bucket/@ - | grep '35160561230314000507550020001107201294779231' | wc -l
finding in gzip files!!!
s3cmd ls --recursive s3://notafiscal-mailing/ | awk '{print $4}' | grep '.gz' | xargs -I@ s3cmd get @ - | zgrep 'request' | wc -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment