📄 all-locales
字号:
#! /bin/sh# Prints the list of all locale names, one per line.locale -atest $? = 0 && exit 0host=`/bin/sh ../autoconf/config.guess`host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`case "$host_os" in sunos* | solaris*) cd /usr/lib/locale && ls -1 ;; freebsd*) cd /usr/share/locale && ls -1 ;; *) echo "Don't know how to determine list of locales on $host_os" 1>&2 exit 1 ;;esac
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -