From owner-freebsd-questions@FreeBSD.ORG Tue Jun 15 08:50:20 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 9E0A310656D1 for ; Tue, 15 Jun 2010 08:50:20 +0000 (UTC) (envelope-from fbsd1@a1poweruser.com) Received: from mail-03.name-services.com (mail-03.name-services.com [69.64.155.195]) by mx1.freebsd.org (Postfix) with ESMTP id 8A67D8FC08 for ; Tue, 15 Jun 2010 08:50:20 +0000 (UTC) Received: from [10.0.10.3] ([202.69.173.91]) by mail-03.name-services.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 15 Jun 2010 01:50:20 -0700 Message-ID: <4C173EC5.2080601@a1poweruser.com> Date: Tue, 15 Jun 2010 16:50:13 +0800 From: Fbsd1 User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: "Svein Skogen (Listmail Account)" References: <4C173909.1050101@comclark.com> <4C173AE5.6030900@stillbilde.net> In-Reply-To: <4C173AE5.6030900@stillbilde.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 15 Jun 2010 08:50:20.0862 (UTC) FILETIME=[C94CF5E0:01CB0C67] X-Sender: fbsd1@a1poweruser.com Cc: freebsd-questions@freebsd.org 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:50:20 -0000 Svein Skogen (Listmail Account) wrote: > 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. >> >> Looking for sample .sh code for handling this standard type of lookup or >> some online tutorial that has sample code for bourne shell programming. >> >> . > > Just for the fun of it. Try escaping the asterisk ("\*") and see if that > works? > > //Svein > Not in the script but on the command line. newjails rm2* as input to the script.