Skip to main content
deleted 13 characters in body
Source Link
Kusalananda
  • 355.8k
  • 42
  • 735
  • 1.1k

Using wdiff:

$ wdiff -3 a.txt b.txt

======================================================================
 [-b-] {+Ь++B+}
======================================================================

The -3 or ---no-common option will remove words that are common between the two files and only show the differences.

The ===... banner (and empty lines) may be removed with grep:

$ wdiff -3 a.txt b.txt | grep -vx '=*'
 [-b-] {+Ь++B+}

wdiff may also read unified diff data if you give it the -d or --diff-input option, for example from git:

git diff somefile | wdiff -d -3

Although wdiff is not a POSIX tool, it is from GNU and commonly available.

Using wdiff:

$ wdiff -3 a.txt b.txt

======================================================================
 [-b-] {+Ь+}
======================================================================

The -3 or ---no-common option will remove words that are common between the two files and only show the differences.

The ===... banner (and empty lines) may be removed with grep:

$ wdiff -3 a.txt b.txt | grep -vx '=*'
 [-b-] {+Ь+}

wdiff may also read unified diff data if you give it the -d or --diff-input option, for example from git:

git diff somefile | wdiff -d -3

Although wdiff is not a POSIX tool, it is from GNU and commonly available.

Using wdiff:

$ wdiff -3 a.txt b.txt

======================================================================
 [-b-] {+B+}
======================================================================

The -3 or ---no-common option will remove words that are common between the two files and only show the differences.

The ===... banner (and empty lines) may be removed with grep:

$ wdiff -3 a.txt b.txt | grep -vx '=*'
 [-b-] {+B+}

wdiff may also read unified diff data if you give it the -d or --diff-input option, for example from git:

git diff somefile | wdiff -d -3

Although wdiff is not a POSIX tool, it is commonly available.

Using wdiffwdiff:

$ wdiff -3 a.txt b.txt

======================================================================
 [-b-] {+Ь+}
======================================================================

The -3 or ---no-common option will remove words that are common between the two files and only show the differences.

The ===... banner (and empty lines) may be removed with grep:

$ wdiff -3 a.txt b.txt | grep -vx '=*'
 [-b-] {+Ь+}

wdiff may also read unified diff data if you give it the -d or --diff-input option, for example from git:

git diff somefile | wdiff -d -3

Although wdiff is not a POSIX tool, it is from GNU and commonly available.

Using wdiff:

$ wdiff -3 a.txt b.txt

======================================================================
 [-b-] {+Ь+}
======================================================================

The -3 or ---no-common option will remove words that are common between the two files and only show the differences.

The ===... banner (and empty lines) may be removed with grep:

$ wdiff -3 a.txt b.txt | grep -vx '=*'
 [-b-] {+Ь+}

wdiff may also read unified diff data if you give it the -d or --diff-input option, for example from git:

git diff somefile | wdiff -d -3

Although wdiff is not a POSIX tool, it is commonly available.

Using wdiff:

$ wdiff -3 a.txt b.txt

======================================================================
 [-b-] {+Ь+}
======================================================================

The -3 or ---no-common option will remove words that are common between the two files and only show the differences.

The ===... banner (and empty lines) may be removed with grep:

$ wdiff -3 a.txt b.txt | grep -vx '=*'
 [-b-] {+Ь+}

wdiff may also read unified diff data if you give it the -d or --diff-input option, for example from git:

git diff somefile | wdiff -d -3

Although wdiff is not a POSIX tool, it is from GNU and commonly available.

added 49 characters in body
Source Link
Kusalananda
  • 355.8k
  • 42
  • 735
  • 1.1k

Using wdiff:

$ wdiff -3 a.txt b.txt

======================================================================
 [-b-] {+Ь+}
======================================================================

The -3 or ---no-common option will remove words that are common between the two files and only show the differences.

The ===... banner (and empty lines) may be removed with grep:

$ wdiff -3 a.txt b.txt | grep -vx '=*'
 [-b-] {+Ь+}

wdiff may also read unified diff data if you give it the -d or --diff-input option, for example from git:

git diff somefile | wdiff -d -3

Although wdiff is not a POSIX tool, it is commonly available.

Using wdiff:

$ wdiff -3 a.txt b.txt

======================================================================
 [-b-] {+Ь+}
======================================================================

The -3 or ---no-common option will remove words that are common between the two files and only show the differences.

The ===... banner (and empty lines) may be removed with grep:

$ wdiff -3 a.txt b.txt | grep -vx '=*'
 [-b-] {+Ь+}

wdiff may also read unified diff data, for example from git:

git diff somefile | wdiff -d -3

Using wdiff:

$ wdiff -3 a.txt b.txt

======================================================================
 [-b-] {+Ь+}
======================================================================

The -3 or ---no-common option will remove words that are common between the two files and only show the differences.

The ===... banner (and empty lines) may be removed with grep:

$ wdiff -3 a.txt b.txt | grep -vx '=*'
 [-b-] {+Ь+}

wdiff may also read unified diff data if you give it the -d or --diff-input option, for example from git:

git diff somefile | wdiff -d -3

Although wdiff is not a POSIX tool, it is commonly available.

Source Link
Kusalananda
  • 355.8k
  • 42
  • 735
  • 1.1k
Loading