mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 00:42:08 +02:00
comp: add page
This commit is contained in:
parent
d1fa3ec7f1
commit
01e8dad975
1 changed files with 32 additions and 0 deletions
32
pages/windows/comp.md
Normal file
32
pages/windows/comp.md
Normal file
|
@ -0,0 +1,32 @@
|
|||
# comp
|
||||
|
||||
> Compare the contents of two files or sets of files.
|
||||
> Use wildcards (*) to compare sets of files.
|
||||
|
||||
- Compare files interactively:
|
||||
|
||||
`comp`
|
||||
|
||||
- Compare two specified files:
|
||||
|
||||
`comp {{path/to/file_1}} {{path/to/file_2}}`
|
||||
|
||||
- Display differences in decimal format:
|
||||
|
||||
`comp /d {{path/to/file_1}} {{path/to/file_2}}`
|
||||
|
||||
- Display differences in ASCII format:
|
||||
|
||||
`comp /a {{path/to/file_1}} {{path/to/file_2}}`
|
||||
|
||||
- Display line numbers for differences:
|
||||
|
||||
`comp /l {{path/to/file_1}} {{path/to/file_2}}`
|
||||
|
||||
- Use a case-insensitive comparison:
|
||||
|
||||
`comp /c {{path/to/file_1}} {{path/to/file_2}}`
|
||||
|
||||
- Compare only the first 5 lines of each file:
|
||||
|
||||
`comp /n={{5}} {{path/to/file_1}} {{path/to/file_2}}`
|
Loading…
Add table
Reference in a new issue