This script will remove the last octet of an IP address.