30 Aug
2012
30 Aug
'12
10:46 p.m.
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
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan