On Wed, 24 Jan 2001, Michael O'Donnell wrote:

> >I have a pictures directory.  in that directory are
> >three more called disk1, disk2, and disk3.
> >
> >What the script is *supposed* to do is "ls $1*.jpg"
> >but when I use disk* as the variable, all I get back
> >is the contents of disk1.
>
> Let's say that you've named your script tomScript.
> >From your description it sounds like you're invoking
> it thus:
>
>    tomScript disk*
>
> and then expecting to see the string "disk*" as the
> first argument.  But recall that the shell will first
> expand disk* to
>
>    disk1 disk2 disk3
>
ack! OK, so that's what's going on. Now I just need to figure out how to
make it on all the directories...

-- 
Thomas M. Albright
Albright Enterprises - "The Small Business Solution"
http://www.albrightent.com/


**********************************************************
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**********************************************************

Reply via email to