Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jun 2010 16:50:13 +0800
From:      Fbsd1 <fbsd1@a1poweruser.com>
To:        "Svein Skogen (Listmail Account)" <svein-listmail@stillbilde.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: * wildcard in.sh script
Message-ID:  <4C173EC5.2080601@a1poweruser.com>
In-Reply-To: <4C173AE5.6030900@stillbilde.net>
References:  <4C173909.1050101@comclark.com> <4C173AE5.6030900@stillbilde.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



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