mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-27 11:53:28 +00:00
Move pages under tldr, lint run.sh, update docs
This commit is contained in:
42
tldr/windows/comp
Normal file
42
tldr/windows/comp
Normal file
@@ -0,0 +1,42 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, windows]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# comp
|
||||
|
||||
> Compare the contents of two files or sets of files.
|
||||
> Use wildcards (*) to compare sets of files.
|
||||
> More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/comp>.
|
||||
|
||||
- Compare files interactively:
|
||||
|
||||
`comp`
|
||||
|
||||
- Compare two specified files:
|
||||
|
||||
`comp {{path oile1}} {{path oile2}}`
|
||||
|
||||
- Compare two sets of files:
|
||||
|
||||
`comp {{path o\directory1}}\* {{path o\directory2}}\*`
|
||||
|
||||
- Display differences in decimal format:
|
||||
|
||||
`comp /d {{path oile1}} {{path oile2}}`
|
||||
|
||||
- Display differences in ASCII format:
|
||||
|
||||
`comp /a {{path oile1}} {{path oile2}}`
|
||||
|
||||
- Display line numbers for differences:
|
||||
|
||||
`comp /l {{path oile1}} {{path oile2}}`
|
||||
|
||||
- Compare files case-insensitively:
|
||||
|
||||
`comp /c {{path oile1}} {{path oile2}}`
|
||||
|
||||
- Compare only the first 5 lines of each file:
|
||||
|
||||
`comp /n={{5}} {{path oile1}} {{path oile2}}`
|
||||
Reference in New Issue
Block a user