Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Jan 2006 14:04:27 -0800
From:      Luke Bakken <luke.bakken@gmail.com>
To:        Frank Staals <frankstaals@gmx.net>
Cc:        questions@freebsd.org, Dan Nelson <dnelson@allantgroup.com>
Subject:   Re: Shellscript syntax question
Message-ID:  <6acc6ca40601091404o4730400eve7ea71e028d603f@mail.gmail.com>
In-Reply-To: <43C2C59A.6020906@gmx.net>
References:  <43C2BE4A.4070601@gmx.net> <20060109195427.GC89638@dan.emsphone.com> <43C2C59A.6020906@gmx.net>

next in thread | previous in thread | raw e-mail | index | archive | help
> About the asteriks : No they weren't but for some reason Thunderbird had
> problems with the color remaining from the KATE Syntax-hilighting.
> Anyway: thanks for the solusion, but what would be the expressions for
> ">" "less or equal" and "greater or equal" ?

Frank,

Since you're getting into shell programming beyond the very basics I
would recommend using a more "able" shell like ksh or bash for your
programming or learning a scripting language like perl, ruby or
python.

For instance, in ksh to do arithmetic comparisons you use the (( )) syntax:

if (( VAR1 <=3D VAR2))
then
    print VAR1 $VAR1 is less than VAR2 $VAR2
fi



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