View Single Post

  #1 (permalink)  
Old 11-21-2007, 12:01 AM
devxtech devxtech is offline
Junior Member
User
 
Join Date: Nov 2007
My distro: SuSE
Posts: 3
Rep Power: 0
devxtech is on a distinguished road
Default 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?
Reply With Quote