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.

SYNOPSIS

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

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

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 06/14/07 17:26:19

IniFileStreamEditorScript:

initial release

[2306] by tac on 06/14/07 17:20:17

New hack IniFileStreamEditorScript, created by tac

Author/Contributors

Author: tac
Contributors:

Copyright © 2006 Free Software Foundation, Inc.

This is free software. You may redistribute copies of it under the terms of the GNU General Public License http://www.gnu.org/licenses/gpl.html. There is NO WARRANTY, to the extent permitted by law.