Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Apr 2004 17:38:39 +0300
From:      Ion-Mihai Tetcu <itetcu@apropo.ro>
To:        Joost Bekkers <joost@jodocus.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: why test(1) works with -eq but not -nq ?
Message-ID:  <20040421173839.740e6e24@it.buh.cameradicommercio.ro>
In-Reply-To: <20040421143044.GA54104@bps.jodocus.org>
References:  <20040421170914.5a5204a3@it.buh.cameradicommercio.ro> <20040421143044.GA54104@bps.jodocus.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 21 Apr 2004 16:30:44 +0200
Joost Bekkers <joost@jodocus.org> wrote:

> On Wed, Apr 21, 2004 at 05:09:14PM +0300, Ion-Mihai Tetcu wrote:
> > # if [ "`cat ports_sup_log | wc -l`" -nq "3" ]; then echo 'da'; fi
> 
> I think you mean -ne instead of -nq

Duh, thanks. 

-- 
IOnut
Unregistered ;) FreeBSD "user"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040421173839.740e6e24>