Lan Barnes wrote:
On Tue, Jan 17, 2006 at 09:41:31PM -0800, Todd Walton wrote:
I want to use sed to take a config file, find an option in the file
and change its value, and to leave the file in place.  I want a
portable, scriptable way to do 'vi settings.config', find setting,
edit text, ":wq".

I don't know sed at all, I just know that it does this kind of thing. What's the best way for a new person to approach getting a basic
understanding of its use?

-todd

Do you know perl? Because all you would be doing is learning an older,
more obscure way of doing what you already can with perl.

This isn't meant as flame bait, but it might as well be. Oh, hell ...
might as well go all the way.

Forget sed and awk. They're obsolete. Do it in perl.

*That's* flame bait!

One reason would be that not all UN*Xs have perl installed by default,
and some orgs don't let you install it just because it would be useful.
Sed and awk are always there. So albeit a better tool, doesn't mean it
is a tool you have.


--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to