How to replace words in all files?
Sergey S. Ropchan
fenix at ramb.com.ua
Fri May 13 03:28:49 PDT 2005
On Fri, 2005-05-13 at 05:23 -0500, Fafa Hafiz Krantz wrote:
> > find / -name '*' -print | xargs grep "lnc0"
> > - gives you all files in your system with lnc0 ...
> >
> > perl -pi.bak -pe 's/lnc0/rl0/' file1 file2 ... fileN
> > - will replace lnc0 - rl0 in all specified files, with backuping of old
> > files in *.bak
>
> Thank you!
You are welcome !
Why when you send message - always 2 messages in maillist !?
>
> *nods in burning respect*
>
> --
>
> Fafa Hafiz Krantz
> Research Designer @ http://www.home.no/barbershop
> Enlightened @ http://www.home.no/barbershop/smart/sharon.pdf
>
>
>
More information about the freebsd-questions
mailing list