知识就是希望
#!/bin/sh export JAVA_HOME=/usr mylocale=`locale -a | awk 'BEGIN{out="POSIX";flage=0;}{if($0=="zh"){flage=1;out="zh";}else if(($0=="zh_CN")&&(flage==0))out="zh_CN";}END{printf "%s", out;}'` LANG=$mylocale export LANG
posted on 2020-09-06 01:43 lydstory 阅读(120) 评论(0) 收藏 举报