Tuesday, January 25, 2011

How can I do this?

Hi,

sorry for being not more specific in the Subject line
to my posting -- I didnt want to put the whole into
it... ;)

I have two files. One "master" and one "copy".

Both consists of lines like this

<category> <parameter> <value>

' ' is a simply space

The <parameter> consists of <word1>-<word2>-<word3>, where the count
of different words is not constant over the lines.

Now I want to replace all lines in the "copy"-file, which have a
certain <word> in its parameter with the line of the "master"-file
with the same "<category> <parameter>" combination in it.

There may be lines in the "copy"-file with parameters matching
<word> which do not have a counterpart in the "master"-file.
Those should be printed.

Is this possible within vim?

Thank you very much in advance for any help!

Best regards
mcc

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: