script fragment: PTR=`dig @some.dns +short +norec -x a.b.c.d` echo "$PTR" if [ "$PTR" == "" ] ; then echo "$PTR" >> /path/to/PTR_absent.txt fi =========== output for an IP: a-b-c-d.domain.net. [: a-b-c-d.domain.net.: unexpected operator thanks Len _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
- Bourne shell "if" syntax lconrad
- RE: Bourne shell "if" syntax dteske
- RE: Bourne shell "if" syntax dteske
- Re: Bourne shell "if" syntax Tim Daneliuk
- Re: Bourne shell "if" syntax Mark Felder
- RE: Bourne shell "if" syntax dteske
- Re: Bourne shell "if" syntax Tim Daneliuk
- RE: Bourne shell "if" syn... dteske
- RE: Bourne shell "if"... dteske
- Re: Bourne shell "if&q... Tim Daneliuk
- Re: Bourne shell "if" syn... Michael Sierchio