Uncoment lines using bash script -
# deb http://archive.canonical.com/ubuntu lucid partner # deb-src http://archive.canonical.com/ubuntu lucid partner
above lines /etc/apt/sources.list
.there number of lines. how uncomment above 2 lines bash script.
i'd
sed -e "s/^# deb/deb/g" /etc/apt/sources.list
instead of
sed -e "s/^# //g" /etc/apt/sources.list
because th second sed command either uncomment lines such :
# see http://help.ubuntu.com/community/upgradenotes how upgrade # newer versions of distribution.
Comments
Post a Comment