Tool for interactively selecting input lines
se(lect) line(s)
seline is a command line tool for interactively selecting one (or more) lines from stdin and passing them to stdout. It is intended to be composed with other tools.
Via npm
npm install -g selineVia yarn
yarn global add selineHere are some example applications that I have been using
$ git branch | seline -m | xargs git branch -D$ git branch --sort=-committerdate | grep -v '*' | seline | xargs git checkoutgit branch | seline | xargs git log --oneline | seline -m | awk '{print $1}' | tail -r | xargs git cherry-pick