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

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -