rjsaulakh has asked for the wisdom of the Perl Monks concerning the following question:
i have a config file in my /usr/src/linux2.4 . the config file have some configuration entries in it along with the option as y, m or n
# General setup # CONFIG_NET=y CONFIG_HOTPLUG=y CONFIG_BSD_PROCESS_ACCT=y CONFIG_NR_CPUS=8 CONFIG_MAX_USER_RT_PRIO=100 CONFIG_MAX_RT_PRIO=0 + # # Busses # + # CONFIG_MCA is not set CONFIG_PCI=y CONFIG_PCI_NAMES=y # CONFIG_HOTPLUG_PCI is not set # CONFIG_HOTPLUG_PCI_COMPAQ_NVRAM is not set # CONFIG_HOTPLUG_PCI_IBM is not set
i have to write a perl script to edit this file .and the changes i have to make are fixed . so can you please help me how can i edit this file through my script and i can set or unset the various parameters
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: editing options in a file
by Joost (Canon) on Jun 21, 2006 at 13:20 UTC | |
by dsheroh (Monsignor) on Jun 21, 2006 at 15:41 UTC | |
|
Re: editing options in a file
by ptum (Priest) on Jun 21, 2006 at 13:21 UTC | |
|
Re: editing options in a file
by dsheroh (Monsignor) on Jun 21, 2006 at 15:34 UTC |