[CentOS] awk global replacement only after keyword

Joseph L. Casale jcasale at activenetwerx.com
Fri Mar 26 03:22:42 UTC 2010

>Can you use a regexp like:

Unless I misunderstand that, I'd say no.

The actual file might look this:

/begin file

foo bar{
	biz	service-one
	baz	service-two

--many more of that--

# comment

fiz bir{
	aaa	service-one
	bbb	service-two

/end file

So only after the "# comment", I want to then start replacing.
I am just trying to replace a very ugly long set of commands piped into
each other that I am using now.


More information about the CentOS mailing list