Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Jul 2006 09:59:43 +0200
From:      dick hoogendijk <dick@nagual.st>
To:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   find syntax
Message-ID:  <20060704075943.GA17920@lothlorien.nagual.st>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060704075943.GA17920>