On 11/08/12 05:53, vicky b wrote:
> THanks Tim dont get me wrong on this i have another query hope u wont mind,

Nope...it's a pretty friendly list.

>   now i have 4 file where each file has key,value data , now i want to
> compare all the files get all the lines which have common keys in it , say
> 
>  file1            file2                     file3           file
> tim,chase    tom,someting    tom,wright   chase,w
> tom,jerry      vinay,b              sachin,b      tom,m
> 
> out put would be
> tom,chase
> tom,jerry
> tom,wright
> tom,m
> 
> is this  possible in vim

I'm not sure I fully understand what you want here.  I don't see any
obvious transformation from your 4 input files to the output you
request, so without a better understanding of what you want, it's
hard to produce a solution.

Operating across multiple files in vim is not always the easiest
thing to do, so I'd suggest a quick external script in
bash/perl/python/ruby.

-tim




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