How do I check the validity of an IP address in a shell script, that is within the range 0.0.0.0 to 255.255.255.255?
0.0.0.0
255.255.255.255
Use ipcalc
$ ipcalc -cs 10.10.10.257 && echo vail_ip || echo invalid_ip invalid_ip