bug-bash
[Top][All Lists]
Advanced

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

strange behaviour in find


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

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]