Delete characters with sed

I have a File with.

10.32.59.15,5,RMI
10.32.56.15,7,RMI
10.32.30.15,25,RMI

I need delete with sed ",number,RMI" in all string:

10.32.59.15
10.32.56.15
10.32.30.15

I try

echo "10.32.59.15,5,RMI" | sed -e 's/,[0-9]+,RMI//g'

I need Help please.

Answers


echo "10.32.59.15,5,RMI" | sed 's/,[0-9]\+,RMI//g'

Need Your Help

when / how often to use Chai-as-promised's .notify()

testing protractor chai cucumberjs

We are using Chai-as-promised with protractor and cucumberjs. I have a question about the .notify(callback) method in the chai-as-promised library.