获取当前操作系统所有时区对应UTC偏移量
#!/bin/bash for tz in `awk '$1 !~/#/{print $3}' /usr/share/zoneinfo/zone.tab`; do export TZ="$tz" echo "$tz `date +%:z`" >> tmptz done unset TZ sort -k 1 tmptz > tzlist rm -f tmptz
> tmptz done unset TZ sort -k 1 tmptz > tzlist rm -f tmptz">
#!/bin/bash for tz in `awk '$1 !~/#/{print $3}' /usr/share/zoneinfo/zone.tab`; do export TZ="$tz" echo "$tz `date +%:z`" >> tmptz done unset TZ sort -k 1 tmptz > tzlist rm -f tmptz