[Gllug] I know this is a bit of a n00b question

Adrian McMenamin adrian at mcmen.demon.co.uk
Wed Oct 8 10:20:32 UTC 2003


On Tuesday 07 October 2003 23:14, Richard Jones wrote:
> On Tue, Oct 07, 2003 at 09:33:49PM +0100, Adrian McMenamin wrote:
> > grep -rl mypassword * | sed -e s/mypassword/dummypassword/g
>
> The first bit is right, but sed won't rewrite the file in place. It's
> a stream filter. This is what the Perl '-i' option in my example is



Yes. I worked out that was thw problem and used your perl example in the end, 
instead. Thanks.

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list