On Mon, Feb 13, 2006 at 11:45:14AM -0500, Daniel B. wrote:
> Mike Bird wrote:
>
> >On Sun, 2006-02-12 at 11:23, David Berg wrote:
> >
> >>I'm trying to write a for loop that descends into a list of
> >>directories and runs a command. I can't seem to get the quoting right
> >>though. Most of the
On 2/12/06, David Berg <[EMAIL PROTECTED]> wrote:
> I'm trying to write a for loop that descends into a list ofdirectories and
> runs a command. I can't seem to get the quoting rightthough. Most of the
> directories have spaces and they are makingthings difficult for me. Here is
> what I have
Mike Bird wrote:
On Sun, 2006-02-12 at 11:23, David Berg wrote:
I'm trying to write a for loop that descends into a list of
directories and runs a command. I can't seem to get the quoting right
though. Most of the directories have spaces and they are making
things difficult for me. Here is
On 2/12/06, Kevin Mark <[EMAIL PROTECTED]> wrote:
> Hi Dave,
> the 'magic' is to never bother with escaped space!! Just use double
> quotes!
>
> cd "$DIR"
I'm thinking too hard again. I was trying to wrap it in {}. Is there
a solution using braces as well?
Thanks.
--Dave
On Sun, 2006-02-12 at 11:23, David Berg wrote:
> I'm trying to write a for loop that descends into a list of
> directories and runs a command. I can't seem to get the quoting right
> though. Most of the directories have spaces and they are making
> things difficult for me. Here is what I have:
>
On Sun, Feb 12, 2006 at 01:23:47PM -0600, David Berg wrote:
> I'm trying to write a for loop that descends into a list of
> directories and runs a command. I can't seem to get the quoting right
> though. Most of the directories have spaces and they are making
> things difficult for me. Here is w
I'm trying to write a for loop that descends into a list of
directories and runs a command. I can't seem to get the quoting right
though. Most of the directories have spaces and they are making
things difficult for me. Here is what I have:
for DIR in dir\ 1 dir\ 2 dir\ 3; do
cd $DIR
7 matches
Mail list logo