1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-28 17:44:54 +02:00
tldr/pages/common/colordiff.md
2020-09-29 11:44:30 +01:00

594 B

colordiff

A tool to colorize diff diff output. The Perl script colordiff is a wrapper for diff and produces the same output but with pretty syntax highlighting. Colour schemes can be customized. More information: https://github.com/kimmel/colordiff.

  • Compare files:

colordiff {{file1}} {{file2}}

  • Output in two columns:

colordiff -y {{file1}} {{file2}}

  • Ignore case differences in file contents:

colordiff -i {{file1}} {{file2}}

  • Report when two files are the same:

colordiff -s {{file1}} {{file2}}

  • ignoring white spaces:

colordiff -w {{file1}} {{file2}}