Tagged Questions

3
votes
6answers
1k views

BASH script that tests for IP

Is there an elegant way to test an IP address in a BASH script? I could do ifconfig and narrow down the IP using sed/awk, but I think there is a simpler solution. My application is basically using ...