Re: grep and substitute tool?
On Wed, 19 Feb 1997, Michael Meskes wrote:
> Do we have any tool to grep and substitute on multiple files? What I want to
> do is replace the name of an include file in each source file at once. Is
> there a way to do this?
Something along the following line might do the trick:
perl -pi -e 's\^#include <linux/foo.h>\#include <sys/foo.h>\' *.h *.c
- - - - umop apisdn 'sdoo - - - -
Bjorn Isaksson <firstname.lastname@example.org>
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com