|Version 3 (modified by anonymous, 8 years ago) (diff)|
edit ini style files en mass
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.
inised <file.ini> <add-key|remove-key> <section> <key> <value>
If you have any issues, create a new ticket.
Download the zipped source from here.
for file in */conf/trac.ini ; do \ inised $file add-key components iniadmin.iniadmin.iniadminplugin enabled \ done
inised conf/trac.ini add-key components iniadmin.iniadmin.iniadminplugin enabled inised conf/trac.ini remove-key components iniadmin.iniadmin.iniadminplugin enabled
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.