Modifing config files

jeff jeff at parlant.com
Fri Feb 25 09:00:33 MST 2005


Oops, I missed something.  I need to be able to specify the section. 
i.e. [import]

jeff wrote:
> That will work thanks.
> 
> Nicholas Leippe wrote:
> 
>> On Friday 25 February 2005 08:44 am, jeff wrote:
>>
>>> Is there a command line tool that will let me modify the value of a
>>> config file.
>>>
>>>
>>> The file is layed out like:
>>>
>>> [import]
>>> filename = /home/blah/blah
>>> starttime = 16:00
>>
>>
>>
>> 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
>>
> .===================================.
> | This has been a P.L.U.G. mailing. |
> |      Don't Fear the Penguin.      |
> |  IRC: #utah at irc.freenode.net   |
> `==================================='



More information about the PLUG mailing list