[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 18:48:04 +0100 |
I search n don't find a sed option wich can replace inside the
common.inc.php file directly, if there is it will be good, i have no > to
do, and no problem in my script.
> 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.
>
>
>