This commit is contained in:
JMARyA 2023-12-04 11:02:23 +01:00
commit c5cd492449
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
475 changed files with 27928 additions and 0 deletions
technology/applications/cli

View file

@ -0,0 +1,24 @@
---
obj: application
os:
- macos
- linux
- windows
repo: https://github.com/theryangeary/choose
---
# choose
`choose`, a human-friendly and fast alternative to `cut` and (sometimes) `awk`
## Usage
```shell
choose [OPTIONS] <choices>...
choose 1 # Choose the the second element
choose -f" " 0:3 # Choose element 0 to 3 seperated by " "
```
## Options
| Option | Description |
| ------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- |
| `-f, --field-separator <field-separator>` | Specify field separator other than whitespace, using [Rust](../../programming/languages/Rust.md) `regex` syntax |
| `-i, --input <input>` | Input file |
| `-o, --output-field-separator <output-field-separator>` | Specify output field separator |