[EMAIL PROTECTED] writes:
> I just finished writing a shell script. Well, not really cause it
> doesn't do what I want yet. Anyway:
>
> 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.
Your description here is extremely confusing. You've got two
asterisks here (which probably doesn't matter much -- "disk**" doesn't
glob to anything different than what "disk*" would have), and you say
that "disk*" is a variable instead of more properly referring to it as
the value of a variable (the variable seems to be "$1" here).
As a wild shot in the dark, try "ls $1*/*.jpg" .
--kevin
--
"...this does not mean that some of us should not want, in a rather
dispassionate sort of way, to put a bullet through csh's head."
--Larry Wall in <[EMAIL PROTECTED]>
**********************************************************
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
**********************************************************