OS Manuals

/usr/bin/crudini

A utility for manipulating ini files

From crudini 0.9.6-r2 (enterprise-packages), captured 2026-11-08 by running crudini --help (exit 0). permalink

A utility for manipulating ini files

Usage: crudini --set [OPTION]...   config_file section   [param] [value]
  or:  crudini --get [OPTION]...   config_file [section] [param]
  or:  crudini --del [OPTION]...   config_file section   [param] [list value]
  or:  crudini --merge [OPTION]... config_file [section]

SECTION can be empty ("") or "DEFAULT" in which case,
params not in a section, i.e. global parameters are operated on.
If 'DEFAULT' is used with --set, an explicit [DEFAULT] section is added.

Multiple --set|--del|--get operations for a config_file can be specified.

Options:

  --existing[=WHAT]  For --set, --del and --merge, fail if item is missing,
                       where WHAT is 'file', 'section', or 'param',
                       or if WHAT not specified; all specified items.
  --format=FMT       For --get, select the output FMT.
                       Formats are 'sh','ini','lines'
  --ini-options=OPT  Set options for handling ini files.  Options are:
                       'nospace': use format name=value not name = value
                       'space': ensure name = value format
                       'sectionspace': ensure one blank line between sections
                       'ignoreindent': ignore leading whitespace
  --inplace          Lock and write files in place.
                       This is not atomic but has less restrictions
                       than the default replacement method.
  --list             For --set and --del, update a list (set) of values
  --list-sep=STR     Delimit list values with "STR" instead of " ,".
                       An empty STR means any whitespace is a delimiter.
  --output=FILE      Write output to FILE instead. '-' means stdout
  --verbose          Indicate on stderr if changes were made
  --help             Write this help to stdout
  --version          Write version to stdout
Options (10)
OptionDescriptionSource
--existing WHATFor --set, --del and --merge, fail if item is missing, where WHAT is 'file', 'section', or 'param', or if WHAT not specified;help
--format FMTFor --get, select the output FMT.help
--ini-options OPTSet options for handling ini files.help
--inplaceLock and write files in place.help
--listFor --set and --del, update a list (set) of valueshelp
--list-sep STRDelimit list values with "STR" instead of " ,".help
--output FILEWrite output to FILE instead.help
--verboseIndicate on stderr if changes were madehelp
--helpWrite this help to stdouthelp
--versionWrite version to stdouthelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.