System Grab Bag

View all TLDR pages from common (or from all pages)

sdiff

Compare the differences between and optionally merge 2 files. More information: https://manned.org/sdiff.
  • Compare 2 files:
    sdiff {{path/to/file1}} {{path/to/file2}}
  • Compare 2 files, ignoring all tabs and whitespace:
    sdiff -W {{path/to/file1}} {{path/to/file2}}
  • Compare 2 files, ignoring whitespace at the end of lines:
    sdiff -Z {{path/to/file1}} {{path/to/file2}}
  • Compare 2 files in a case-insensitive manner:
    sdiff -i {{path/to/file1}} {{path/to/file2}}
  • Compare and then merge, writing the output to a new file:
    sdiff -o {{path/to/merged_file}} {{path/to/file1}} {{path/to/file2}}

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.