home / file-management / choose

choose

2.2k

Field and character selection CLI for slicing whitespace- or regex-separated text in shell pipelines.

$brew install choose-rust
Language
Rust
Stars
2,197
Agent
AI Analysis

choose is a small text-selection CLI for pulling fields or character ranges from each input line with slice-like syntax. It is built for quick shell pipeline work on whitespace-separated, delimiter-separated, or regex-split text.

What It Enables
  • Extract specific columns or ranges from command output, logs, and flat files without writing short awk programs.
  • Slice from the front or back of each line with open-ended ranges, negative indexes, and reverse ranges when you need tail fields or reordered spans.
  • Split on whitespace, literal delimiters, or regex separators, and switch to character-wise slicing for fixed-width text.
Agent Fit
  • Streams stdin or file input without prompts, so it composes cleanly in shell pipelines and inspect/transform loops.
  • Output is plain text only, with no JSON or schema awareness, so downstream automation still depends on delimiters or additional parsing.
  • Best when an agent needs to reshape ad hoc line output from other CLIs; less compelling once the upstream tool already exposes structured data.
Caveats
  • Line-oriented only: it does not understand CSV quoting, headers, or nested structured formats.
  • Selection is its whole scope; filtering, aggregation, and richer transforms still belong to more expressive text or data processors.