On 2012-10-07, mcc wrote:
> Hi,
> 
> There are two files ("A" and "B") - both sorted alphabetically and of 
> comparable
> contents.
> 
> "A" is missing some entries of "B" and "B" is missing some entries of
> "A".
> 
> I want to delete all entries both files have in common.
> 
> Is this possible with vim in a easy way?

There may be a way to do this with Vim, but I would use the comm
command.  For example,

    comm -23 file1 file2

will produce a list of the lines in file1 that are not in file2.

Regards,
Gary

-- 
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

Reply via email to