Modifing config files
jeff
jeff at parlant.com
Fri Feb 25 08:57:29 MST 2005
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
>
More information about the PLUG
mailing list