configure lists with text file or programatically.

I have created a dozen or so lists and I want to change the settings of all of them in a similar way.
This file seems to hold the config data; /var/lib/mailman/lists/<listname>/config.pck.last
But it is not friendly. Is there a way to programatically or with a text editor apply settings?
Thanks for any advice.

This seems to be a nice solution;
$ sudo config_list -o /dev/stdout <listname> |sed 's/advertised = .*/advertised = False/' -e 's/foo/bar/ |sudo config_list -i /dev/stdin <listname>
Eric Smith wrote on Thu-30-Aug 12 8:23PM
I have created a dozen or so lists and I want to change the settings of all of them in a similar way.
This file seems to hold the config data; /var/lib/mailman/lists/<listname>/config.pck.last
But it is not friendly. Is there a way to programatically or with a text editor apply settings?
Thanks for any advice.

Eric Smith wrote:
This seems to be a nice solution;
$ sudo config_list -o /dev/stdout <listname> |sed 's/advertised = .*/advertised = False/' -e 's/foo/bar/ |sudo config_list -i /dev/stdin <listname>
This is unduly complicated. The input to config_list need only contain those things you want to change so you could just do
cat << EOF | sudo config_list -i /dev/stdin <listname> advertised = False bar EOF
Also, see http://www.msapiro.net/scripts/set_attributes, a script which processes things like
set_attributes "advertised = False" "foo = bar" listname
participants (2)
-
Eric Smith
-
Mark Sapiro