2017-02-24 47 views

回答

0

你可以找到

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

並替換爲空白字符串

0

這是你正在尋找的輸出?

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