Skip to content

Instantly share code, notes, and snippets.

@MehdiZonjy
Created June 28, 2019 09:12
Show Gist options
  • Save MehdiZonjy/6c70398d8a720a291d73337d7fb93eaa to your computer and use it in GitHub Desktop.
Save MehdiZonjy/6c70398d8a720a291d73337d7fb93eaa to your computer and use it in GitHub Desktop.
#!/bin/bash
queue=""
for i in {1..1000}
do
aws sqs receive-message --queue-url $queue --visibility-timeout 600 --max-number-of-messages 10 | jq ".Messages[].Body | fromjson" > $i.json
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment