| #! /bin/bash | |
| RESULT='{"1421445558":0}' | |
| if [[ $RESULT =~ ^\{\"\d{10}\":0\}$ ]] | |
| then | |
| echo "It works!" | |
| else | |
| echo "It's broken :(" | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
| #! /bin/bash | |
| RESULT='{"1421445558":0}' | |
| if [[ $RESULT =~ ^\{\"\d{10}\":0\}$ ]] | |
| then | |
| echo "It works!" | |
| else | |
| echo "It's broken :(" | |
| fi |