Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 May 2005 13:28:37 +0300
From:      "Sergey S. Ropchan" <fenix@ramb.com.ua>
To:        questions@freebsd.org, Fafa Hafiz Krantz <fteg@london.com>
Subject:   Re: How to replace words in all files?
Message-ID:  <1115980117.28135.23.camel@sirius>
In-Reply-To: <20050513102349.BA9A04BEAD@ws1-1.us4.outblaze.com>
References:  <20050513102349.BA9A04BEAD@ws1-1.us4.outblaze.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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
> 
> 
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1115980117.28135.23.camel>