我有以下字符串:
test1234a或者test1234例如,我只想test从该字符串中提取。
test1234a
test1234
test
我尝试了以下
echo "Test12h" | sed -e 's/[0-9]\*$//' but is not working.
有没有可能提取子串直到第一个数字?
请让我知道我想念的。
谢谢
bash shell grep sed
bash ×1
grep ×1
sed ×1
shell ×1