Created
December 14, 2015 18:11
-
-
Save emdantrim/77c674a65623a07a24a9 to your computer and use it in GitHub Desktop.
a cute script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
TZFILE=`find /usr/share/zoneinfo -iname $1|head -1` | |
if [ -z $TZFILE ] ; then | |
echo nope | |
else | |
TZ=$TZFILE date | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# emma at aqualung in ~ [18:11:21] | |
$ timein sydney | |
Tue Dec 15 05:11:02 AEDT 2015 | |
# emma at aqualung in ~ [18:11:28] | |
$ timein juneau | |
Mon Dec 14 09:11:06 AKST 2015 | |
# emma at aqualung in ~ [18:11:32] | |
$ timein wellington | |
nope |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment