I need to remove a 3 character substring from a document, which could be located anywhere in the document, eg.
text
text
text
bla bla bla -ri bla bla bla
text
text
text
I would like to search for -ri and remove it to obtain
text
text
text
bla bla bla bla bla bla
text
text
text
If this were a fixed line and character number I'm pretty sure I could excise it with sed or cut, but I am not sure how to do it if the line and character position are variable. Is this possible?