[CentOS] replace

Jim Perrin jperrin at gmail.com
Fri Oct 24 22:19:04 UTC 2008

On Fri, Oct 24, 2008 at 5:13 PM, Pintér Tibor <tibyke at tibyke.hu> wrote:

> perl -pi -e "s/foo/bar/" *.html

You also have to give an extension to the command to get a backup. For
this one it would basically be:
perl -pi.old -e 's/foo/bar/' *.html... in addition to the no recursion

During times of universal deceit, telling the truth becomes a revolutionary act.
George Orwell

More information about the CentOS mailing list