1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-23 21:35:27 +02:00

diff: add -u (unified diff) example (#2462)

This commit is contained in:
Waldir Pimenta 2018-10-19 10:42:28 +01:00 committed by Owen Voke
parent d7ddec2fd2
commit 22bdcd575b

View file

@ -10,10 +10,14 @@
`diff -w {{file1}} {{file2}}`
- Compare files, showing differences side by side:
- Compare files, showing the differences side by side:
`diff -y {{file1}} {{file2}}`
- Compare files, showing the differences in unified format (as used by `git diff`):
`diff -u {{file1}} {{file2}}`
- Compare directories recursively:
`diff -r {{directory1}} {{directory2}}`