#!/bin/bash # Created by Ben Okopnik on Wed Nov 21 23:06:09 EST 2001 # Links '/etc/localtime' to appropriate TZ [ $UID -gt 0 ] && { printf "You need to be root.\n"; exit; } PS3="Please select a timezone: " select tz in New_York Chicago Denver Los_Angeles do [ "$tz" = "" ] && { printf "Invalid choice; timezone not set.\n" exit } ln -sf /usr/share/zoneinfo/America/$tz /etc/localtime printf "The timezone is now America/$tz.\n" exit done