0%

【shell】截断字符串

https://www.cnblogs.com/fengbohello/p/5954895.html

1
2
3
line='abcd<SEG>efg'
newline=${line#*<SEG>}
echo $newline # efg