Instead of 'ls', try:
find $1 -name \*.jpg
Note that you'll have to use '.' if you want all the files in the
current directory.
--Bruce
"Thomas M. Albright" wrote:
>
> 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.
>
> The script, when complete, will take $1*.jpg and use convert (from the
> ImageMagik package) to create thumbnails and a webpage for displaying.
>
> I can post the whole script if y'all want, but I need help please!
**********************************************************
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
**********************************************************