I went through a command called 'pick' in some Unix book, but didn't understand what it does exactly. Below is a sample pick command:
pick abc.*
I went through a command called 'pick' in some Unix book, but didn't understand what it does exactly. Below is a sample pick command:
pick abc.*
pick
command is the one where for each given argument, it asks yes/no and prints the selection to stdout. It accepts a list of choices as input and produces the selected choice as output.
Example to use pick:
find -type f | pick | xargs xdg-open
This allow you to select a file in the list found by the find
command using an ncurses(3X) interface and open it with xdg-open
apt-get install pick
(debian)
– Dababi
Dec 27 '16 at 09:33
find -name *.txt | pick | xargs gedit
. This will allow you to pick a txt file from the list found by the find command and open it with gedit (xargs will pass it as an argument to gedit)
– Dababi
Dec 27 '16 at 09:41
man pick
? – OrangeDog Dec 27 '16 at 23:07man pick
at work. – OrangeDog Jun 13 '19 at 13:47