Monday, April 21, 2014

Compare files, save differences

Hi,

I have a file allwords.txt.
And I have another file mywords.txt

How can I filter the differences, and safe them in another file called difwords.txt?

Example:
+------ allwords.txt -------+
James
Richard
Anna
Claude
Ben
+------------+

+------mywords.txt-----+
Anna
Ben
+-------------------+

This should then make the following file

+------difwords.txt-----+
James
Richard
Claude
+-----------+


Rgds,
Jeri

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