Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- validip() {
- # uses dotquad.c to parse $1 as a dotted-quad IP address
- if dotquad "$1" > /dev/null 2>&1
- then
- return 0
- else
- return 1
- fi
- } #end of validip function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement