Re: How to parse sections in INI-file? (existing tool?)
hej petter :)
Am Freitag 28 Mai 2004 18:19 schrieb Petter Reinholdtsen:
> There is a perl module Config::IniFiles to do it as well.
Thanks for the hint - and @Adrian: sorry, could you please state a more
appropriate list?
I tried using sed like below to convert the ini file to XML - the section
entry, alas, does not work (fields do):
cat .kde/share/config/kmailrc |sed -e 's/"/\\"/g' |
sed -e 's/\[\([^\]]*\)\]/<\/section><section name="\1">/g;
s/ *\([^=]*\)=\(.*\)/<field name="\1" value="\2">/g'
(single line)
Reply to: