A vi question

stan stanb at panix.com
Tue Sep 8 18:35:31 UTC 2009

vi is a continuing learning experinece :-)

The lesson I would like to learn today is given a file containing lines of
this format:

SOR XIC I:016/0 BST OTE B3/200 NXB OTE N51:4/13 BND EOR

I need to delete evrything on each line _before_ the OTE. The strings
preceding the OTE are vairable. So I need a command that saya:

for each line find everyhting from the begining of the line through OTE,
and substitue OTE for it. or at leat that's one idea I had. I am ceratin
there is more than one way to solve this problem.

I was thinking that I needed something like:


But * is not the appropriate wildcard here in vi.

Any sugestions?

One of the main causes of the fall of the roman empire was that, lacking
zero, they had no way to indicate successful termination of their C

More information about the ubuntu-users mailing list