in reply to Re: changing inside a file
in thread changing inside a file

this seems to work but I get this error
Can't do inplace edit without backup.

Replies are listed 'Best First'.
Re: Re: Re: changing inside a file
by waswas-fng (Curate) on Aug 26, 2002 at 19:53 UTC
    find . -name "*.html" -exec perl -pi.bak -e's/ old / new /' {} \; ; This will put a <filename>.bak backup file in place for every file that gets updated.. you must be using Activestate perl huh? mine allows inplace without a backup..

    -Waswas