Date: Tue, 7 Jan 1997 17:19:42 -0800 (PST) From: Steve Reid <steve@edmweb.com> To: rg@gds.de Cc: freebsd-isp@freebsd.org Subject: Re: grep & replace Message-ID: <Pine.BSF.3.95.970107171730.293E-100000@bitbucket.edmweb.com> In-Reply-To: <199701080055.BAA03700@gds.de>
next in thread | previous in thread | raw e-mail | index | archive | help
> I have to replace one special word in about one hundred files. The > expression could be several time in some files. > Is there something like grep that would not only find these > expressions but also replace them by the new one? Try sed. You'll probably get more info from looking at shell scripts that use sed (look in /etc) than from the sed man page. If you need to do really complex stuff, you might prefer Perl.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95.970107171730.293E-100000>