uniq command for MoonX.
moonx cli/uniq@0.2.5 [-cduDiz] [--all-repeated[=METHOD]] [--group[=METHOD]] [-f FIELDS] [-s CHARS] [-w CHARS] [FILE]| Option | Description |
|---|---|
| -c / -d / -u | Count occurrences / repeated records only / singletons only. |
| -i | Ignore ASCII case. |
| -f, --skip-fields=N / -s, --skip-chars=N | Skip fields, then bytes before comparing. |
| -w, --check-chars=N | Limit compared bytes. |
| -D, --all-repeated[=METHOD] | Print all duplicates; none, prepend or separate separators. |
| --group[=METHOD] | Print all groups; separate (default), prepend, append or both. |
| -z, --zero-terminated | Use NUL-delimited records. |
| --help / --version | Show help / package version. |
printf 'a\na\nb\n' | moonx cli/uniq@0.2.5 -c
moonx cli/uniq@0.2.5 -d sorted.txt