wiki:IniFileStreamEditorScript

Version 2 (modified by anonymous, 7 years ago) (diff)

--

edit ini style files en mass

Description

inised can update the trac.ini-file for the trac environments at the command line, you can use inised. It is surprisingly written in python and depends just on ConfigObj - you will find it at least in debian/ubuntu. (package python-ponfigobj)

You can edit every ini-style file. inised can also remove keys from sections, but an empty sections will stay left.

Bugs/Feature Requests

Existing bugs and feature requests for IniFileStreamEditorScript are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from here.

Source

You can check out IniFileStreamEditorScript from here using Subversion, or browse the source with Trac.

Example

for file in */conf/trac.ini ; do \

inised $file add-key components iniadmin.iniadmin.iniadminplugin enabled \

done

USAGE: inised <file.ini> <add-key|remove-key> <section> <key> <value>

EXAMPLES: inised conf/trac.ini add-key components iniadmin.iniadmin.iniadminplugin enabled inised conf/trac.ini remove-key components iniadmin.iniadmin.iniadminplugin enabled

Recent Changes

[2307] by tac on 2007-06-15 00:26:19
IniFileStreamEditorScript:

initial release

[2306] by tac on 2007-06-15 00:20:17
New hack IniFileStreamEditorScript, created by tac

Author/Contributors

Author: tac
Contributors: