mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-31 21:57:12 +00:00
6a56589245
Display word differences between text files. PR: 4613 Submitted by: MIHIRA Yoshiro <sanpei@yy.cs.keio.ac.jp>
22 lines
590 B
Plaintext
22 lines
590 B
Plaintext
<< wdiff >>
|
|
|
|
From man page of wdiff:
|
|
wdiff compares two files, finding which words have been
|
|
deleted or added to old_file to get new_file. A word is
|
|
anything between whitespace. The output is collected and
|
|
used to produce an annotated copy of new_file on standard
|
|
output. Suitable annotations produce a nice display of
|
|
word differences between the original files.
|
|
|
|
Example:
|
|
text-a
|
|
I like FreeBSD.
|
|
text-b
|
|
I love FreeBSD.
|
|
|
|
% wdiff -n text-a text-b
|
|
I [-like-] {+love+} FreeBSD.
|
|
|
|
- Yoshiro MIHIRA
|
|
(sanpei@yy.cs.keio.ac.jp)
|