Skip to content

Instantly share code, notes, and snippets.

@alaingilbert
Created April 11, 2017 05:33
Show Gist options
  • Save alaingilbert/bf44d91384a1ef8b0618374411512ae9 to your computer and use it in GitHub Desktop.
Save alaingilbert/bf44d91384a1ef8b0618374411512ae9 to your computer and use it in GitHub Desktop.
Rainforestqa challenge
# Solution by Alain Gilbert
# http://letsrevolutionizetesting.com/challenge
curl -s http://letsrevolutionizetesting.com/challenge.json > tmp.json
while grep --quiet "follow" tmp.json; do
sed "s/challenge/challenge.json/g" tmp.json > tmp1.json
curl -s $(cat tmp1.json | jq -r '.follow') > tmp.json
done
cat tmp.json | jq -r '.message'
rm tmp.json tmp1.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment