Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 May 2005 05:23:49 -0500
From:      "Fafa Hafiz Krantz" <fteg@london.com>
To:        "Sergey S. Ropchan" <fenix@ramb.com.ua>, questions@freebsd.org
Subject:   Re: How to replace words in all files?
Message-ID:  <20050513102349.BA9A04BEAD@ws1-1.us4.outblaze.com>

next in thread | raw e-mail | index | archive | help

> find / -name '*' -print | xargs grep "lnc0"
> - gives you all files in your system with lnc0 ...
>=20
> 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!

*nods in burning respect*

--

Fafa Hafiz Krantz
  Research Designer @ http://www.home.no/barbershop
  Enlightened @ http://www.home.no/barbershop/smart/sharon.pdf



--=20
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm



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