Use sed to adjust Linux conf files, ksplice

while read HOST ; do ssh someuser@$HOST "sudo sed -i.bak 's/autoinstall = no/autoinstall = yes/g' /etc/uptrack/uptrack.conf; " < /dev/null; done <all_servers2.txt

-i creates a backup
Advertisements