OS X: Set All Computers Names Script

I use this simple bash script to set all four of the computer names so they are consistent.

There are differences between the computer names, but I typically want them all the same.  The only one I set differently is the NetBIOS name because it can only be 15 characters.  In order to make it unique, I just set it as the computer’s serial number, which is saved in a variable in the script.  And since the serial numbers are only 12-13 digits long, it’s perfect!