Re: configuration file changes


Subject: Re: configuration file changes
From: Arthur Corliss (arthur@corlissfamily.org)
Date: Thu Jun 13 2002 - 19:54:47 AKDT


> I am working in a situation where the config files changed from one version
> of the program to another. Is there a reasonable way to write a
> script that would put the old config file entries in a file, then
> insert them into the new config files?
>
> An example might be:
>
> =old config file=
>
> IP=192.168.2.5
> NAME=Mike
>
> =new config file=
> IPADDRESS=
> FIRSTNAME=
> LASTNAME=
>
> Obviously I want to move the IP to IPADDRESS.
>
> This is way oversimplified but the ideas is there.

All you need is sed. . .

--

--Arthur Corliss Bolverk's Lair -- http://arthur.corlissfamily.org/ Digital Mages -- http://www.digitalmages.com/ "Live Free or Die, the Only Way to Live" -- NH State Motto

--------- To unsubscribe, send email to <aklug-request@aklug.org> with 'unsubscribe' in the message body.



This archive was generated by hypermail 2a23 : Fri Jun 14 2002 - 13:45:16 AKDT