lineselect
Interactively select lines from stdin, right in your pipelines.
ls | lineselect | xargs rm
Install
curl -fsSL https://urbanogilson.github.io/lineselect/install.sh | sh
Pin a version
LINESELECT_VERSION=0.2.3 curl -fsSL https://urbanogilson.github.io/lineselect/install.sh | sh
Usage
<command producing input> | lineselect | <subsequent command>
Use arrow keys to navigate, press Space to select/deselect lines, and press Enter to proceed with the selected lines.
ls | lineselect | xargs rm
Options
| Option | Short | Description | Default |
|---|---|---|---|
--prompt <TEXT> |
-p |
Custom prompt text | Pick some lines |
--max-height <N> |
- | Maximum number of lines to display at once | (all lines) |
--version |
-V |
Print version | - |
--help |
-h |
Print help | - |
Features
Interactive selection
Pause the pipeline's execution to manually select specific lines from the input stream.
Seamless integration
Drop it into any existing command-line pipeline.
Optimized workflow
Curate data on the fly for more accurate results.