Be first to get a Nexus 5

11 points by deadfish ↗ HN
for (( ; ; )); do if curl "https://play.google.com/store/devices" -L -s --compressed | grep -q "exus 5" ; then echo "Nexus 5 is Launched" ; fi ; sleep 10 ; done ;

Enough said :D

8 comments

[ 7.2 ms ] story [ 32.9 ms ] thread
If you're on a Mac I recommend using 'say' instead of 'echo'. Then you'll hear when it's finished instead of having to check the terminal (which kind of defeats the purpose)
Or echo -e "\aNexus 5 is launched" perhaps.
On linux, you can use espeak as it is installed by default as text-to-speach engine:

echo "Nexus 5 launched" | espeak