find syntax

dick hoogendijk dick at nagual.st
Tue Jul 4 07:59:45 UTC 2006


I want to change a string in a number of html files (recursive)

In a linux group I got this line:

#find /dir/to/htmlfile -name *.html -exec perl -p -i -e
"s/nagual.st/nagual.nl/g;" {} \;

This gives me an error "unknown option" and does not work.

Doing a: perl -p -i -e "s/nagual.st/nagual.nl/g;" * does make the changes
alright, but going to all html directories this way is a pain in...;-)

What am I doing wrong in the first (linux) line?
Any help appreciated.

-- 
dick -- http://nagual.st/ -- PGP/GnuPG key: F86289CE
++ Running FreeBSD 6.1 +++ The Power to Serve


More information about the freebsd-questions mailing list