Skip to Content
gnux

-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

ShortLongValueDefaultMeaning
-c--checkWHEN (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.txt

Help in the terminal

gnux help sortx --check

On this page