SYNOPSIS

crudini --set [--existing] config_file section [param] [value]

crudini --get [--format=sh|ini] config_file [section] [param]

crudini --del [--existing] config_file section [param]

crudini --merge [--existing] config_file [section]

EXAMPLES

Add/Update a var

  • crudini --set config_file section parameter value

Update an existing var

  • crudini --set --existing config_file section parameter value

Delete a var

  • crudini --del config_file section parameter

Delete a section

  • crudini --del config_file section

Output a value

  • crudini --get config_file section parameter

Output a global value not in a section

  • crudini --get config_file '' parameter

Output a section

  • crudini --get config_file section

Output a section, parseable by shell

  • eval $(crudini --get --format=sh config_file section)

Update an ini file from shell variable(s)

  • echo name="$name" | crudini --merge config_file section

Merge an ini file from another ini

  • crudini --merge config_file < another.ini

AUTHOR

This manual page was written by Zev Benjamin <[email protected]> for the Debian GNU/Linux system (but may be used by others). Its contents are based on the crudini documentation.