var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
automate editing /etc/yum.conf
Does anyone know how I can do the equivalent of this via a script:
(this part comments out gpgcheck=1 throughout the file with a search/replace).
Ideas? The script doesnt need to use vi, any search/replace option would work.
sed 's/gpgcheck=1/#gpgcheck=1/g' /etc/yum.conf > /tmp/001 && mv /tmp/001 /etc/yum.conf
One small change:
sed 's/gpgcheck=1/#gpgcheck=1/g' /etc/yum.conf > /tmp/001 && mv --reply=y /tmp/001 /etc/yum.conf
mv -f should work. Sorry, my home machine isn't a RedHat box. I always forget about those lame aliases they define.