I found a bash script to validate ip addresses here: http://www.linuxjournal.com/content/validating-ip-address-bash-script
When i try to run it I get the error :
test.sh: line 22: syntax error: unexpected "(" (expecting "fi")
Line 22 looks like this:
- Is this line supposed to be creating a list or array?
I've tried two different shells, and neither work. tried:
Any suggestions would be appreciated.