edit /etc/hosts entry on mulitipule machines

Today I would like to share a bash program that I wrote to make it very quick to easily change the print client on a bunch of unix print clients. How it works is that all the print clients are told to print to prtserv and then in the /etc/hosts file you uncomment the print server that will be seeing the print clients today.

There are three different options, where you have all print clients using server1, all print clients using server2, which is good for doing maintenance on one of the print servers. Then there is the normal state where the production servers are using one print server and the development print clients are using the other print server.