[CentOS] replace

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Fri, Oct 24, 2008 at 5:13 PM, Pint?r Tibor <tibyke@xxxxxxxxx> 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
thing....

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

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux