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

Richard Jones rich at annexia.org
Wed Oct 8 08:17:23 UTC 2003


On Wed, Oct 08, 2003 at 07:46:11AM +0100, Nix wrote:
> On Tue, 7 Oct 2003, Richard Jones spake:
> > 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
> > for.
> 
> With GNU sed 4.x, this is no longer the case :)
> 
> grep -rl mypassword * | sed -i~ -e s/mypassword/dummypassword/g

Ah ...

Bring back 'gres' ... that's what I say.

Rich.

-- 
Richard Jones. http://www.annexia.org/ http://freshmeat.net/users/rwmj
Merjis Ltd. http://www.merjis.com/ - all your business data are belong to you.
MAKE+ is a sane replacement for GNU autoconf/automake. One script compiles,
RPMs, pkgs etc. Linux, BSD, Solaris. http://www.annexia.org/freeware/makeplus/

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




More information about the GLLUG mailing list