Re: * wildcard in.sh script

2010-06-16 Thread Aiza
Polytropon wrote: On Tue, 15 Jun 2010 09:25:05 -0700, Chip Camden sterl...@camdensoftware.com wrote: As others have mentioned, you need to quote or escape the * in the command line: admin cell* The problem, for explaination purposes, is that the shell you enter the command will already

* wildcard in.sh script

2010-06-15 Thread Aiza
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 *

Re: * wildcard in.sh script

2010-06-15 Thread Svein Skogen (Listmail Account)
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

Re: * wildcard in.sh script

2010-06-15 Thread Fbsd1
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

Re: * wildcard in.sh script

2010-06-15 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 15/06/2010 09:25:45, 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

Re: * wildcard in.sh script

2010-06-15 Thread Aiza
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

Re: * wildcard in.sh script

2010-06-15 Thread RW
On Tue, 15 Jun 2010 17:06:11 +0800 Aiza aiz...@comclark.com wrote: Here is the test and out put # admin cell* admin: No match. try ./admin cell* ___ freebsd-questions@freebsd.org mailing list

Re: * wildcard in.sh script

2010-06-15 Thread RW
On Tue, 15 Jun 2010 12:20:14 +0100 RW rwmailli...@googlemail.com wrote: On Tue, 15 Jun 2010 17:06:11 +0800 Aiza aiz...@comclark.com wrote: Here is the test and out put # admin cell* admin: No match. try ./admin cell* Sorry that would be not found, not No match

Re: * wildcard in.sh script

2010-06-15 Thread Aiza
This is the output. want to build list only containing file names prefixed with job. Putting around the value on the command line worked. But before this can go to production will have to fix the code so no on the command value. # admin job* prefix_name1 = job* prefix_name2 = job if

Re: * wildcard in.sh script

2010-06-15 Thread Randal L. Schwartz
Aiza == Aiza aiz...@comclark.com writes: Aiza This is the output. want to build list only containing file names Aiza prefixed with job. Putting around the value on the command Aiza line worked. But before this can go to production will have to fix Aiza the code so no on the command value.

Re: * wildcard in.sh script

2010-06-15 Thread Chip Camden
On Jun 15 2010 17:06, Aiza wrote: 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

Re: * wildcard in.sh script

2010-06-15 Thread Polytropon
On Tue, 15 Jun 2010 09:25:05 -0700, Chip Camden sterl...@camdensoftware.com wrote: As others have mentioned, you need to quote or escape the * in the command line: admin cell* The problem, for explaination purposes, is that the shell you enter the command will already expand cell* to

Re: * wildcard in.sh script

2010-06-15 Thread Aiza
Chip Camden wrote: On Jun 15 2010 17:06, Aiza wrote: 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