+ -
当前位置:首页 → 问答吧 → bash4威武,大小写转换写法

bash4威武,大小写转换写法

时间:2011-05-23

来源:互联网

RT:


QUOTE:
In bash 4, the easiest and by far the most elegant way to do this for lowercase is:
  1. echo ${string,,*}
复制代码
and for uppercase:
  1. echo ${string^^*}
复制代码

作者: xiaopan3322   发布时间: 2011-05-23

确实厉害,还在用bash2的飘过~~

作者: where27   发布时间: 2011-05-23

热门下载

更多