mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-05 11:26:00 +02:00
sdiff: add page (#3304)
This commit is contained in:
parent
c2db2b45b7
commit
8edaf18d93
1 changed files with 23 additions and 0 deletions
23
pages/common/sdiff.md
Normal file
23
pages/common/sdiff.md
Normal file
|
@ -0,0 +1,23 @@
|
|||
# sdiff
|
||||
|
||||
> Compare the differences between and optionally merge 2 files.
|
||||
|
||||
- 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}}`
|
Loading…
Add table
Reference in a new issue