69,371
社区成员
发帖
与我相关
我的任务
分享
[owenliang@localhost cAndCpp.dir]$ str="abc: from hello<efg> wer"
[owenliang@localhost cAndCpp.dir]$ echo $str | sed -r "s/^abc.*<(.*)>.*/\1/g"
efg
[owenliang@localhost cAndCpp.dir]$
echo $str | sed -r "s/^abc.*<(.*)>.*/\1/g"