shell脚本字符串处理

 

shell去掉字符串最后一个字符

var=”12345467,”
${var%?}=”1234567”

 

posted @ 2021-08-02 10:31  aaronwell  阅读(65)  评论(0)    收藏  举报