Topic: Test variable for ip
I need to check a variable in a shell script to see if it's an ip address. It feels like overkill to create a temporary file for it so I want to check against the variable. Also, it's not that important that it's a valid ip.
The script is in sh (bourne shell) and I'd appreciate all input. However, solutions in other languages i.e. bash or ksh are not of interest.