-c, --check
Check for sorted input; do not sort. WHEN (diagnose-first, quiet, silent) says whether to report the first disorder.
An option of sortx.
Usage
sortx -c [FILE]...
sortx --check[=WHEN] [FILE]...Details
| Short | Long | Value | Default | Meaning |
|---|---|---|---|---|
-c | --check | WHEN (optional) | check for sorted input; do not sort. WHEN (diagnose-first, quiet, silent) says whether to report the first disorder |
Examples
Report the first line out of order
sortx -c names.txtHelp in the terminal
gnux help sortx --check