匹配一个或多个空格

echo $str | sed 's/[ |\t]\{1,\}/\|/g'

猜你喜欢

转载自snmp.iteye.com/blog/824499
今日推荐