find syntax

dick hoogendijk dick at nagual.st
Tue Jul 4 22:23:32 UTC 2006


On Tue, 4 Jul 2006 15:10:05 -0400 (EDT)
Peter <petermatulis at yahoo.ca> wrote:

> 
> --- Olivier Nicole <on at cs.ait.ac.th> wrote:
> 
> > > #find /dir/to/htmlfile -name *.html -exec perl -p -i -e
> > > "s/nagual.st/nagual.nl/g;" {} \;
> > 
> > You should escape the * that you pass to find:
> > 
> > -name \*.html
> 
> Or
> 
> -name "*.html"

Yes, yes, they both work ;-)
The files are changed and it went very fast.
Thank you for your suggestions. And I have written down this
"change-files-rule" into my notebook. It is powerful!

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


More information about the freebsd-questions mailing list