$ ./tz.sh
$ ./tz.sh | grep -v ^posix
$ ./tz.sh | grep posix
Last active
November 2, 2015 14:39
-
-
Save tkuchiki/f8d02c56c077267b6a0a to your computer and use it in GitHub Desktop.
TZ と offset を出力する
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 | |
cd /usr/share/zoneinfo/ | |
for TIMEZONE in $(find . -type f); do | |
export TZ=$(echo ${TIMEZONE} | sed -e 's|./||') | |
echo ${TZ} $(date +%z) | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment