Friday, June 27, 2014

Re: Compare files, save differences

I apologize. You can use sort and join to get this result. For
example...

join -v1 <(sort allwords.txt) <(sort mywords.txt) >difwords.txt

- Conner


On Fri, Jun 27, 2014 at 10:12:10AM -0400, kamaraju kusumanchi wrote:
>On Fri, Jun 27, 2014 at 9:56 AM, Conner McDaniel <connermcd@gmail.com>
>wrote:
>
>> You can use the `diff` program to check differences between files. You
>> could also use `git diff` as an alternative. If you want to view changes
>> interactively in vim use `:vimdiff`. Seek help for these commands in the
>> man pages and `:help` documentation.
>>
>> - Conner
>>
>>
>
>While these are all useful tools, this will not solve OP's problem. The
>idea here is to get the list of list of names that are in one set but not
>in another set and then store the results into a different file. How will
>you achieve this with diff, git diff, vimdiff?
>
>raju
>--
>Kamaraju S. Kusumanchi
>http://malayamaarutham.blogspot.com/
>
>--
>--
>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
>
>---
>You received this message because you are subscribed to the Google Groups "vim_use" group.
>To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
>For more options, visit https://groups.google.com/d/optout.

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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment