How to replace words in all files?
Fafa Hafiz Krantz
fteg at london.com
Fri May 13 03:23:50 PDT 2005
> 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!
*nods in burning respect*
--
Fafa Hafiz Krantz
Research Designer @ http://www.home.no/barbershop
Enlightened @ http://www.home.no/barbershop/smart/sharon.pdf
--
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm
More information about the freebsd-questions
mailing list