Compare two sorted files line by line
comm -1 {flag-1} -2 {flag-2} -3 {flag-3} --check-order {check-order} -z {zero-terminated} ๐ flag-1 ๐ flag-2 ๐ flag-3 ๐ check-order ๐ zero-terminated comm -1 {flag-1} -2 {flag-2} -3 {flag-3} --check-order {check-order} -z {zero-terminated} Sandbox: execFile · Timeout: 30s
system.file.comm system.file.search system.file.process system.file.copy system.file.move system.file.delete | Name | Type | Required | Default | Description | Aliases |
|---|---|---|---|---|---|
flag-1 | string | No | - | suppress column 1 (lines unique to FILE1) | -1 |
flag-2 | string | No | - | suppress column 2 (lines unique to FILE2) | -2 |
flag-3 | string | No | - | suppress column 3 (lines that appear in both files) | -3 |
check-order | string | No | - | check that the input is correctly sorted, even if all input lines are pairable --nocheck-order do not check that the input is correctly sorted --output-delimiter=STR separate columns with STR --tot... | --check-order |
zero-terminated | string | No | - | line delimiter is NUL, not newline --help display this help and exit --version output version information and exit | -z, --zero-terminated |
help | boolean | No | - | --help | |
nocheck_order | boolean | No | - | --nocheck-order | |
output_delimiter | boolean | No | - | --output-delimiter | |
version | boolean | No | - | --version |
Basic usage with flag-1
comm ${flag-1} Display help message
comm --help comm is a command-line utility for compare two sorted files line by line.
comm -1 {flag-1} -2 {flag-2} -3 {flag-3} --check-order {check-order} -z {zero-terminated}