I want to be able to run a command to get a property from a property file. So if my properties file is property.props and has
username=dsollen
password=letMeIn
linux-skills=newb
I would like to have a quick way to pull out the property to pipe into other commands. so
./myProgram -v -p `getProp property.props password`
or something like that; not sure I used the ` right, but that's a different newb linux question for later :)
I know I can do this with a combination of grep and cut/awk/sed/whatever, but I'm wondering if there is an already existing tool that 'knows' how to read common property file formats and does something like this? If not I could write something to add into my scripts folder, just don't want to reinvent the wheel if a better wheel already exists.