Created
April 11, 2017 05:33
-
-
Save alaingilbert/bf44d91384a1ef8b0618374411512ae9 to your computer and use it in GitHub Desktop.
Rainforestqa challenge
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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