init
This commit is contained in:
commit
c5cd492449
475 changed files with 27928 additions and 0 deletions
technology/applications/cli
24
technology/applications/cli/choose.md
Normal file
24
technology/applications/cli/choose.md
Normal 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 |
|
Loading…
Add table
Add a link
Reference in a new issue