grep an IP for use in a script

byo71's picture
Communications | Debian Support

nslookup any.domain.tld | grep Address | cut -d ":" -f 2 | grep -v "#" | cut -d " " -f 2