Removing text between two specific strings

sedtext processing

I have a file as below:

mime PI Name: ISHO SUCCESS RATE RT, Value: 95.663826
scr  PI Name: RRC Access Failures due to UU, Value: 0.13394141
prog PI Name: RRC Access Failures due to UU, Value: 0.16077702
sch PI Name: RRC Access Failures due to UU, Value: 0.11781933

I want to remove text PI till Value:. I tried

sed '/<PI>/,/<\/Value:>/d' 

Any help?

Best Answer

Replace everything from PI to Value: with empty string:

sed 's/PI.*Value://'
Related Question