Last active
November 21, 2022 15:00
-
-
Save colemar/1b03158edfad5e1fd75576c04015567f to your computer and use it in GitHub Desktop.
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
ipaddr=144.24.81.189 | |
[[ "$ipaddr." =~ ^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])[.]){4}$ ]] && echo "Well formed" || echo "Syntax error" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment