From owner-freebsd-questions@FreeBSD.ORG Mon Jan 9 22:04:32 2006 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A29F116A41F for ; Mon, 9 Jan 2006 22:04:32 +0000 (GMT) (envelope-from luke.bakken@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id E401043D4C for ; Mon, 9 Jan 2006 22:04:30 +0000 (GMT) (envelope-from luke.bakken@gmail.com) Received: by wproxy.gmail.com with SMTP id i34so3260668wra for ; Mon, 09 Jan 2006 14:04:27 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=WJWHV/BuZq47cdxlL10Xqj7MtE4FFA6sEPvSa1mVDYR6mKksJx18WZRiM9nn2D+nMXu8TmtWjLIzIKbRtZ4Hcl0ZyCP2060jWFsyg/2LAPuKiRXP+OOLgefojkRRrDmh34m+YQwFsSyvEKglyMB44QsJEWFGJMkjMMrsVqoEUdA= Received: by 10.65.186.10 with SMTP id n10mr2807864qbp; Mon, 09 Jan 2006 14:04:27 -0800 (PST) Received: by 10.64.153.11 with HTTP; Mon, 9 Jan 2006 14:04:27 -0800 (PST) Message-ID: <6acc6ca40601091404o4730400eve7ea71e028d603f@mail.gmail.com> Date: Mon, 9 Jan 2006 14:04:27 -0800 From: Luke Bakken To: Frank Staals In-Reply-To: <43C2C59A.6020906@gmx.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <43C2BE4A.4070601@gmx.net> <20060109195427.GC89638@dan.emsphone.com> <43C2C59A.6020906@gmx.net> Cc: questions@freebsd.org, Dan Nelson Subject: Re: Shellscript syntax question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jan 2006 22:04:32 -0000 > 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