Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

choose - make choices on the command line

reads lines from stdin, lets user choose one line in an urwid (ncurses like) interface, then prints that line to stdout and exits. Input will be aligned to tabs(\t). After reading from stdin, in attaches itself directly to the currently active tty, thus it can work with piped input:

get_data.sh | choose | other_script.sh

Choose should run on all *NIXes, but might not work in non utf-8 locales.

An example of piping the output of pc_query -t searchstring into choose:

About

make choices on the command line

Resources

License

Packages

No packages published

Languages