#!/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
#!/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
发表评论 评论 (3 个评论)