Modifing config files

Jayce^ jason at
Fri Feb 25 10:16:21 MST 2005

On Friday 25 February 2005 08:51 am, Nicholas Leippe wrote:
> I'm sure a couple of lines of perl could do it.  At the very least:
> perl -p -i -e 's/^starttime.*$/starttime = 17:00/' bar.cfg

If using perl, check out the above.  A couple of several OO interfaces to INI 
style config files.  Let's you use an OO or functional style to work with 

The second one is one of the most simple to read/write.  The others provide 
much more advanced interfaces.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : 

More information about the PLUG mailing list