On Thu 18 Apr 2002 at 12:11:47 -0600, you wrote:
> Paul Jarc stated the following:
> >
> > SoloCDM <deedsmis@aculink.net> wrote:
> >
> > > How do I force a for loop to except files with spaces in their
> > > names?
> >
> > Quote the spaces. (BTW, you mean "accept", not "except". "except" is
> > nearly the opposite of what you mean.)
>
> It didn't work. Even with the quotes around the whole name it didn't
> work.
What are you using?
This works for me:
[ianmacd@caliban ~]$ for i in 'foo bar'; do echo $i; done
foo bar
Ian
--
Ian Macdonald | Every man is as God made him, ay, and often
ian@caliban.org | worse. -- Miguel de Cervantes
|
|
|