From owner-freebsd-questions@FreeBSD.ORG Mon Sep 12 20:17:07 2005 Return-Path: X-Original-To: freebsd-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 118E016A41F for ; Mon, 12 Sep 2005 20:17:07 +0000 (GMT) (envelope-from dpkirchner@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9602343D49 for ; Mon, 12 Sep 2005 20:17:06 +0000 (GMT) (envelope-from dpkirchner@gmail.com) Received: by xproxy.gmail.com with SMTP id i31so2504544wxd for ; Mon, 12 Sep 2005 13:17:05 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=pqGgw0VnMG5wz6RVV5c4oIgfnzJztU3fwcUmwOskVNkhma/J8bkAuWUqfM/F63+z/yr2oxR09Yhb1wSMEOWE0dz0rUhVVCyIAsaYoBRr3ak/OsfjNrqENgUCHUtLmVymjTdcDuA9f2fh4BWrAZIaiK+0i6fNJD6ugDv57fvRJQQ= Received: by 10.70.60.6 with SMTP id i6mr11295wxa; Mon, 12 Sep 2005 13:17:05 -0700 (PDT) Received: by 10.70.104.20 with HTTP; Mon, 12 Sep 2005 13:17:05 -0700 (PDT) Message-ID: <35c231bf05091213172be30212@mail.gmail.com> Date: Mon, 12 Sep 2005 13:17:05 -0700 From: David Kirchner Sender: dpkirchner@gmail.com To: Paul Schmehl In-Reply-To: <01A14A33D6971135F96609A2@utd59514.utdallas.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <01A14A33D6971135F96609A2@utd59514.utdallas.edu> Cc: freebsd-questions@freebsd.org Subject: Re: Shell scripting question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: David Kirchner List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Sep 2005 20:17:07 -0000 On 9/12/05, Paul Schmehl wrote: > How can I strip the leading character from the string so that I can test = to > see if it's zero? This'll strip the 0, while leaving other numbers intact: $ X=3D09 $ echo ${X#0} 9