Re: Simplest sed

From: Mark Roberts (
Date: Wed Nov 22 2000 - 02:24:44 CET

On Wed, 22 Nov 2000 wrote:

> sed -e 's/old\.h/new\.h/g' old.c > new.c

Thank you.


Thanks again.

> And do take a look at regular expressions. It's well worth the
> trouble. They are used extensively everywhere in the *nix
> world. sed, grep, perl etc etc.

Yes, I quite agree. My problem was only sed, not the regular expressions.
I have written tools using lex and yacc, which proves I can cope with
regular expressions. I just somehow never needed sed ...

Happy hacking, Mark

To unsubscribe, e-mail:
For additional commands, e-mail:

This archive was generated by hypermail 2.1.6 : Sat Feb 08 2003 - 15:27:16 CET