Modifing config files

Nicholas Leippe nick at byu.edu
Fri Feb 25 08:51:17 MST 2005


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



More information about the PLUG mailing list