From 01e8dad9756775affc23e521d42b3c891d956f93 Mon Sep 17 00:00:00 2001 From: pxgamer Date: Mon, 19 Nov 2018 09:52:12 +0000 Subject: [PATCH] comp: add page --- pages/windows/comp.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pages/windows/comp.md diff --git a/pages/windows/comp.md b/pages/windows/comp.md new file mode 100644 index 000000000..e9758cee3 --- /dev/null +++ b/pages/windows/comp.md @@ -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}}`