shell

1. 去掉字符串最后一个斜杆(如果最后一个字符是斜杆)

echo ${stra%*/}

 

posted @ 2019-08-01 23:23  teaChat  阅读(111)  评论(0)    收藏  举报