summaryrefslogtreecommitdiff
path: root/home/xyz/.local/bin/dirnameall
AgeCommit message (Expand)Author
2021-12-15`[ -n "$a" ]` and `[ "$a" ]` seems the same, I decided to use the latterxyz
2021-12-15dirnameall, optimize with awkxyz
2021-12-13gitmetap, consider dirnamexyz
span class="hl opt">:T: opt; do case $opt in c) tz_from="Asia/Shanghai";; f) tz_from="$(tzselect)";; F) tz_from="$OPTARG";; # one extra ',' at the end will not let `for tz in ...` loop one extra time? t) for i in $(seq "$OPTARG"); do tz_to="$(tzselect),$tz_to" done;; T) tz_to="$OPTARG,$tz_to";; \?) exit 1;; esac done shift $((OPTIND-1))