Thank you James, that did the trick!


"Kipp, James" wrote:
> 
> try using the glob() function..
> it does this nicely
> 
> > -----Original Message-----
> > From: Ken Hammer [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, September 05, 2001 4:54 PM
> > To: [EMAIL PROTECTED]
> > Subject: Passing Wild Cards to System Commands
> >
> >
> > Hi All,
> >
> >  I'm trying to pass wildcards (*) to the
> > system using the back quote method.
> >
> >  For instance I want to list out a
> > directory that contains a particular
> > part of a string:
> >
> > $file = `ls file.*.$variable.txt` where the "*" can
> > be any number of different charactors. Of course,
> > I pass it the value of the "$variable", but when I
> > run my script I get an error:
> >
> > file.*.123456.txt: No such file or directory.
> >
> >  The "123456" is the value of $variable.
> >
> >  I know I can use "opendir" and the like to scan
> > through directories, but I would like to know how
> > this could work. Escaping the "*" (\*) did not help.
> > The "?" wildcard recieved the same treatment.
> >
> >  Ideas?
> >
> > --
> > Ken Hammer
> > Information Technology Central Services
> > University Of Michigan
> > [EMAIL PROTECTED]
> >
> > --
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >

-- 
Ken Hammer
Information Technology Central Services
University Of Michigan
[EMAIL PROTECTED]

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to