[NBLUG/talk] shell scripting help

Bill Kendrick nbs at sonic.net
Tue Jun 10 15:28:44 PDT 2008


On Tue, Jun 10, 2008 at 03:05:14PM -0700, Lincoln Peters wrote:
> On Tue, Jun 10, 2008 at 1:46 PM, Sean <seanvanco at gmail.com> wrote:
> > while [ loops != 180 ]
> 
> Try this:
> while [ loops -ne 180 ]
> 
> I don't know why you need to use that notation, but at least it seems to work.

!= is for strings, -ne is for arithmetic.  *shrug*

-- 
-bill!
bill at newbreedsoftware.com
http://www.newbreedsoftware.com/



More information about the talk mailing list