Date: Mon, 10 Jun 2013 13:53:26 -0500 From: lconrad@go2france.com To: <freebsd-questions@freebsd.org> Subject: Bourne shell "if" syntax Message-ID: <51b620a6.42f.2b6a6400.5605dcf0@go2france.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?51b620a6.42f.2b6a6400.5605dcf0>