Validate IP Address
I have a script, which gathers input from the user, and I want to validate an IP that is entered. How can I validate an IP to make sure it is indeed an IP address without having to echo it out and run grep + regular expression on the variable?
|