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

-- 
Respectfully,

Nicholas Leippe
Sales Team Automation, LLC
1335 West 1650 North, Suite C
Springville, UT  84663 +1 801.853.4090
http://www.salesteamautomation.com
.===================================.
| This has been a P.L.U.G. mailing. |
|      Don't Fear the Penguin.      |
|  IRC: #utah at irc.freenode.net   |
`==================================='

Reply via email to