2020-09-28 08:06:50 +05:30
|
|
|
# colordiff
|
|
|
|
|
2020-09-28 16:47:22 +05:30
|
|
|
> A tool to colorize diff output.
|
2022-06-27 12:23:12 +02:00
|
|
|
> The Perl script colordiff is a wrapper for `diff` and produces the same output but with pretty syntax highlighting. Color schemes can be customized.
|
2020-09-28 08:06:50 +05:30
|
|
|
> More information: <https://github.com/kimmel/colordiff>.
|
|
|
|
|
|
|
|
- Compare files:
|
|
|
|
|
2020-09-28 08:58:24 +05:30
|
|
|
`colordiff {{file1}} {{file2}}`
|
2020-09-28 08:06:50 +05:30
|
|
|
|
2020-09-28 09:04:39 +05:30
|
|
|
- Output in two columns:
|
2020-09-28 08:06:50 +05:30
|
|
|
|
2020-09-28 08:58:24 +05:30
|
|
|
`colordiff -y {{file1}} {{file2}}`
|
2020-09-28 08:06:50 +05:30
|
|
|
|
2020-09-28 09:04:39 +05:30
|
|
|
- Ignore case differences in file contents:
|
2020-09-28 08:06:50 +05:30
|
|
|
|
2020-09-28 08:58:24 +05:30
|
|
|
`colordiff -i {{file1}} {{file2}}`
|
2020-09-28 08:06:50 +05:30
|
|
|
|
2020-09-28 09:04:39 +05:30
|
|
|
- Report when two files are the same:
|
2020-09-28 08:06:50 +05:30
|
|
|
|
2020-09-28 08:58:24 +05:30
|
|
|
`colordiff -s {{file1}} {{file2}}`
|
2020-09-28 08:06:50 +05:30
|
|
|
|
2020-09-28 09:22:44 +05:30
|
|
|
- Ignore white spaces:
|
2020-09-28 08:06:50 +05:30
|
|
|
|
2020-09-28 08:58:24 +05:30
|
|
|
`colordiff -w {{file1}} {{file2}}`
|