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

Nix nix at esperi.org.uk
Thu Oct 9 09:38:18 UTC 2003


On Wed, 8 Oct 2003, Richard Jones spake:
> 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.

Bring back awf!

I use it to read all my manpages. It's much better than this newfangled
groff crap.

-- 
`If you want a vision of the future, it is a wireless broadband network
 feeding requests for foreign money-laundering assistance into a human
 temporal lobe, forever. With banner ads.' --- John M. Ford

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




More information about the GLLUG mailing list