cut command for MoonX.
moonx cli/cut@0.2.5 (-b LIST | -c LIST | -f LIST [-d CHAR] [-s]) [--complement] [--output-delimiter=STRING] [-z] [FILE...]| Option | Description |
|---|---|
| -b, --bytes=LIST | Select bytes. |
| -c, --characters=LIST | Select characters under the C-byte profile. |
| -f, --fields=LIST | Select fields. |
| -d, --delimiter=CHAR | Set the field delimiter; empty means NUL. |
| -s, --only-delimited | Skip undelimited records in field mode. |
| --complement | Invert the selected positions. |
| --output-delimiter=STRING | Join selected fields/ranges; empty means NUL. |
| -z, --zero-terminated | Use NUL-delimited records. |
| --help / --version | Show help / package version. |
printf 'x,y,z\n' | moonx cli/cut@0.2.5 -d, -f1,3
moonx cli/cut@0.2.5 -b 1-4 fixed.txt