Skip to content

Instantly share code, notes, and snippets.

@truemagic-coder
Created December 14, 2019 18:41
#!/bin/sh
echo "how many seconds?"
read seconds
while [ $seconds -gt 0 ]
do
curl localhost:8080/broadcast/$seconds
seconds=`expr $seconds - 1`
done
@truemagic-coder
Copy link
Author

truemagic-coder commented Dec 14, 2019

chmod +x counter.sh && ./counter.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment