From e7c12e72fb058e415847b614a54ee81b62dbe7d4 Mon Sep 17 00:00:00 2001 From: Markus Raab Date: Thu, 29 Oct 2015 13:36:50 +0100 Subject: [PATCH] ini: give small mount example for #280 --- src/plugins/ini/README.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/plugins/ini/README.md b/src/plugins/ini/README.md index 6cf867bb983..aeee698543f 100644 --- a/src/plugins/ini/README.md +++ b/src/plugins/ini/README.md @@ -8,7 +8,7 @@ ## INTRODUCTION ## -This plugin allows reading of INI files. INI files consist of simple +This plugin allows read/write of INI files. INI files consist of simple key value pairs of the form "key = value". Additionally keys can be categorised into different sections. Sections must be enclosed in "[]", for example "[section]". Each section is converted into a directory key @@ -16,6 +16,23 @@ for example "[section]". Each section is converted into a directory key key. If the same section appears multiple times, the keys of all sections with the same name are merged together under the section key. +## USAGE ## + +If you want to add a ini file to the global key database, simply use mount: + + kdb mount file.ini /test ini + +Then you can modify the contents of the ini file using set: + + kdb set user/test/key value + kdb set user/test/section + kdb set user/test/section/key value + +Find out which file you modified: + + kdb file user/test + + ## SECTIONS ## When converting a KeySet to an INI file it is important to differentiate between