[augeas-devel] Help splitting a key on a slash character

Marc Riddle mriddle at valueclick.com
Tue May 11 16:57:29 UTC 2010


I was hoping someone could help me out with a new lens I'm working on (for
sssd.conf in rhel6/recent fedoras). It's pretty much a straight ini file,
with one problem. There are 'domain' sections whose headers look like
'[domain/LOCAL]', '[domain/LDAP]', which I'm figuring I'll split up inside
of a 'domain' label, with a tree that ends up something like:

{ "domain"
  { "LOCAL"
    { "foo" = "bar" } }
  { "LDAP"
    { "foo" = "bar" } } }

but I'm having a hell of a time splitting on the '/'. I was wondering if
anyone could point me to an existing lens that does something similar, or
just give me some advice on the best way to proceed with this...

Thanks,

Marc 







This email and any files included with it may contain privileged,
proprietary and/or confidential information that is for the sole use
of the intended recipient(s).  Any disclosure, copying, distribution,
posting, or use of the information contained in or attached to this
email is prohibited unless permitted by the sender.  If you have
received this email in error, please immediately notify the sender
via return email, telephone, or fax and destroy this original transmission
and its included files without reading or saving it in any manner.
Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/augeas-devel/attachments/20100511/3e5c8949/attachment.htm>


More information about the augeas-devel mailing list