Scriptable way to edit yum .repo files?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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@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@centos-5 ~]$

-- Russ herrold
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux