cut command for MoonX.
moonx cli/cut -b 1-5 input.txt
moonx cli/cut -d : -f 1,3 records.txt| Option | Description |
|---|---|
| -s, --only-delimited | Skip undelimited records in field mode. |
| -d VALUE, --delimiter VALUE | Set the field delimiter; empty means NUL. |
| -f VALUE, --fields VALUE | Select fields. |
| -b VALUE, --bytes VALUE | Select bytes. |
| -c VALUE, --characters VALUE | Select characters under the C-byte profile. |
| --complement | Invert the selected positions. |
| --output-delimiter VALUE | Join selected fields/ranges; empty means NUL. |
| -z, --zero-terminated | Use NUL-delimited records. |
| --help | Show help. |
| --version | Show the version. |