2017-02-24 51 views

回答

0

你可以找到

([^_\s]+_){2} 

并替换为空白字符串

0

这是你正在寻找的输出?

awk -F 'def_' '{print $2}' file 
xyz and 
ghj_fff