From owner-freebsd-questions@FreeBSD.ORG Tue Jun 15 08:33:47 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2B8E21065672 for ; Tue, 15 Jun 2010 08:33:47 +0000 (UTC) (envelope-from svein-listmail@stillbilde.net) Received: from mail.stillbilde.net (unknown [IPv6:2002:51af:3dc3:0:20c:29ff:fece:79f3]) by mx1.freebsd.org (Postfix) with ESMTP id 9911F8FC08 for ; Tue, 15 Jun 2010 08:33:46 +0000 (UTC) Received: from [IPv6:2002:51af:3dc3:0:58c:450e:671a:cf47] (unknown [IPv6:2002:51af:3dc3:0:58c:450e:671a:cf47]) (Authenticated sender: svein-listmail) by mail.stillbilde.net (Familien Skogens mail) with ESMTPSA id F2E2022 for ; Tue, 15 Jun 2010 10:33:55 +0200 (CEST) Message-ID: <4C173AE5.6030900@stillbilde.net> Date: Tue, 15 Jun 2010 10:33:41 +0200 From: "Svein Skogen (Listmail Account)" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.9) Gecko/20100317 Lightning/1.0b1 Thunderbird/3.0.4 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4C173909.1050101@comclark.com> In-Reply-To: <4C173909.1050101@comclark.com> X-Enigmail-Version: 1.0.1 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig2738F88955A50898B1399C2E" Subject: Re: * wildcard in.sh script 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: Tue, 15 Jun 2010 08:33:47 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig2738F88955A50898B1399C2E Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 15.06.2010 10:25, Aiza wrote: > I have a directory with files in it. The first 3 letters of the file > names is the group prefix. I'm trying to write a script to accept the 3= > letter of the group followed by a * to mean its a prefix lookup. But > when I run it I get a message "NO match" that is not issued by the > script. Its like * is not allowed as input. >=20 > Looking for sample .sh code for handling this standard type of lookup o= r > some online tutorial that has sample code for bourne shell programming.= >=20 > . Just for the fun of it. Try escaping the asterisk ("\*") and see if that works? //Svein --=20 --------+-------------------+------------------------------- /"\ |Svein Skogen | svein@d80.iso100.no \ / |Solberg =D8stli 9 | PGP Key: 0xE5E76831 X |2020 Skedsmokorset | svein@jernhuset.no / \ |Norway | PGP Key: 0xCE96CE13 | | svein@stillbilde.net ascii | | PGP Key: 0x58CD33B6 ribbon |System Admin | svein-listmail@stillbilde.net Campaign|stillbilde.net | PGP Key: 0x22D494A4 +-------------------+------------------------------- |msn messenger: | Mobile Phone: +47 907 03 575 |svein@jernhuset.no | RIPE handle: SS16503-RIPE --------+-------------------+------------------------------- If you really are in a hurry, mail me at svein-mobile@stillbilde.net This mailbox goes directly to my cellphone and is checked even when I'm not in front of my computer. ------------------------------------------------------------ Picture Gallery: https://gallery.stillbilde.net/v/svein/ ------------------------------------------------------------ --------------enig2738F88955A50898B1399C2E Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (MingW32) iEYEARECAAYFAkwXOukACgkQODUnwSLUlKR8BQCeKWg7CgTDxJU3bdQr9R66B42/ rw0An0CcV75rdtrAVPFShAuUQTmnPppR =OVWj -----END PGP SIGNATURE----- --------------enig2738F88955A50898B1399C2E--