On Fri, 27 Oct 2006 09:48:28 +0200
Neil Stockbridge <[EMAIL PROTECTED]> wrote:

> (the "x" in "x1" above is so that when the backtick command returns the
> empty string, the shell interprets "if [ x1 == x ].." rather than "if
> [ 1 ==  ]..", which is illegal.  the "banned2" string above if what i'm
> looking for the presence or absence of in the iptables output.  "wc -l"
> counts the lines in the output)

Use " quotes ( if [ "1" == "`ls -l`" ] ). This adding characters is an obscene 
bodge (: 

Steve

Reply via email to