Is there a tool which can be used to script the modification of configuration files which look like this
Code:
[Section One]
Name=Some text here
Arbitryvalue=7
Something=seven small dogs
[Section Seven]
Version_Major=8
Version_Mino=7
I don't know what the technical term, if there is one, for that configuration file format is but it's quite common.
Such files can always be modified from a shell script using sed or similar, but it often requires some careful thought to make sure you only modify the right part of the file, that the script doesn't create a mess if run multiple times and other such considerations. I'm wondering if there is a nicer way of doing it. I've looked at augeas but it doesn't appear to understand such files as they don't show up under /files.