[Gllug] I know this is a bit of a n00b question
Richard Jones
rich at annexia.org
Tue Oct 7 22:14:31 UTC 2003
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.
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.
"I wish more software used text based configuration files!"
-- A Windows NT user, quoted on Slashdot.
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list