Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Jan 2005 17:16:53 -0500
From:      Timothy Luoma <lists@tntluoma.com>
To:        Eric F Crist <ecrist@secure-computing.net>
Cc:        FreeBSD-Questions Questions <freebsd-questions@freebsd.org>
Subject:   Re: my lame attempt at a shell script...
Message-ID:  <2C5C95E0-5DD5-11D9-89A5-000D93AD26C8@tntluoma.com>
In-Reply-To: <C97EA39E-5DD1-11D9-B56F-000D9333E43C@secure-computing.net>
References:  <06DDB71C-5DB4-11D9-B56F-000D9333E43C@secure-computing.net> <15416223037.20050103193803@hexren.net> <6074EB8D-5DC6-11D9-89A5-000D93AD26C8@tntluoma.com> <F0BE3E23-5DC8-11D9-B56F-000D9333E43C@secure-computing.net> <41D9BA53.4060105@locolomo.org> <C97EA39E-5DD1-11D9-B56F-000D9333E43C@secure-computing.net>

next in thread | previous in thread | raw e-mail | index | archive | help

On Jan 3, 2005, at 4:52 PM, Eric F Crist wrote:

> In regards to the = or -eq, I can't discern a difference in output when
> I use them.  Can you explain further their differences?

I think they are different ways of saying the same thing.  Personal 
preference only as to which is better.

> What would NOT EQUAL be?

!=

-ne only works for integars (see 'man test').

TjL



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2C5C95E0-5DD5-11D9-89A5-000D93AD26C8>