Hi,
I need a tool that allows me to parse a config file and request some data from it.
The format of the config file is free (it can be INI, XML, and so on) but the more human-friendly, the better.
Here is a sample config file (using XML, but it could be anything: i don't mind the format):
<?xml version="1.0" encoding="UTF-8" ?>
<configuration>
<name>Some name</name>
<description>Some description</description>
</configuration>
The tool usage should be something like:
[ereOn@server ~]$ the_tool config.xml "string(/configuration/name)"
Some name
[ereOn@server ~]$ the_tool config.xml "string(/configuration/description)"
Some description
Do you know any Linux tool that can do that ?