[CentOS] Scriptable way to edit yum .repo files?

Thu Jan 8 03:23:56 UTC 2009
R P Herrold <herrold at centos.org>

On Thu, 8 Jan 2009, Amos Shapira wrote:

> I found Perl's Conf::INI module but it expects comments beginning with
> ";", not "#".

and
 	 | sed -e 's@^#@;@g'
cannot cure that bad habit on generated files or an input 
stream?

[herrold at centos-5 ~]$ cat - << END | sed -e 's@^#@;@g'
> one
> two#two
> $three#three
> #four;four
> #five#five
> ;six#six
> END
one
two#two
;three
;four;four
;five#five
;six#six
[herrold at centos-5 ~]$

-- Russ herrold