bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: strange behaviour in find


From: David D
Subject: Re: strange behaviour in find
Date: Tue, 18 Dec 2001 16:28:16 +0100

I forgot to say that i m using cygnus under a win xp machine.

> Hello,
>
> I have a :
>
> bash: {}/common2.inc.php:  no such file or directory
>
> Here is the command
>
> find -type d -name include -exec sed "s/toto1/toto2/g" {}/common.inc.php >
> {}/common2.inc.php \; -exec mv -f {}/common2.inc.php {}/common.inc.php \;
>
> I dont understand beacause
>
> find -type d -path "*include" -exec echo {} \; -exec echo {} \;
>
> works
>
> the {} pattern is well replaced in the 2nd sample but it seems not in the
> other.
>
>
>
> Thanks.
>
>
>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]