Options (4)
-W, --ignore-all-spacebooleanCompare 2 files, ignoring all tabs and whitespace
Example:
sdiff {{[-W|--ignore-all-space]}} {{path/to/file1}} {{path/to/file2}}-Z, --ignore-trailing-spacebooleanCompare 2 files, ignoring whitespace at the end of lines
Example:
sdiff {{[-Z|--ignore-trailing-space]}} {{path/to/file1}} {{path/to/file2}}-i, --ignore-casebooleanCompare 2 files in a case-insensitive manner
Example:
sdiff {{[-i|--ignore-case]}} {{path/to/file1}} {{path/to/file2}}-o, --outputbooleanCompare and then merge, writing the output to a new file
Example:
sdiff {{[-o|--output]}} {{path/to/merged_file}} {{path/to/file1}} {{path/to/file2}}Examples (5)
Compare 2 files
sdiff path/to/file1 path/to/file2Compare 2 files, ignoring all tabs and whitespace
sdiff [-W|--ignore-all-space] path/to/file1 path/to/file2Compare 2 files, ignoring whitespace at the end of lines
sdiff [-Z|--ignore-trailing-space] path/to/file1 path/to/file2Compare 2 files in a case-insensitive manner
sdiff [-i|--ignore-case] path/to/file1 path/to/file2Compare and then merge, writing the output to a new file
sdiff [-o|--output] path/to/merged_file path/to/file1 path/to/file2made by @shridhargupta | data from tldr-pages