knowledge/technology/applications/cli/choose.md
2024-03-19 09:25:42 +01:00

1.2 KiB

obj repo
application https://github.com/theryangeary/choose

choose

choose, a human-friendly and fast alternative to cut and (sometimes) awk

Usage

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 regex syntax
-i, --input <input> Input file
-o, --output-field-separator <output-field-separator> Specify output field separator