in reply to Replacing text in many files, including binaries

I know this is a Perl list but the stream editer does in-place string replacement as one of it's "things".
find . -type f -exec sed -i 's/<div>Comments<\/div>/<div class="red">C +omments<\/div>/g' {} \;

Replies are listed 'Best First'.
Re^2: Replacing text in many files, including binaries
by jdporter (Paladin) on Jul 19, 2011 at 14:00 UTC
     s/ sed -i / perl -pi /

    (approximately. the regex will have to be converted to perl as well.)