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.*
  • 7
    Have you read man pick?
    – OrangeDog
    Commented Dec 27, 2016 at 23:07
  • Also, do not Google man pick at work.
    – OrangeDog
    Commented Jun 13, 2019 at 13:47

1 Answer 1


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

  • Is it supported in bash shells, because I tried using it in an online bash terminal , and it gave "command not found" error. Commented Dec 27, 2016 at 9:31
  • yes it is supported but you must install it apt-get install pick (debian)
    – Dababi
    Commented Dec 27, 2016 at 9:33
  • Can u explain the command with a simpler query as I am not familiar with xargs command? Commented Dec 27, 2016 at 9:35
  • 2
    xargs will take the text chosen by the pick command and make an argument to xdg-open from it. another example is 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
    Commented Dec 27, 2016 at 9:41
  • so in the above example the 'pick' command will give a prompt for printing the file names on the terminal.. is that correct? Commented Dec 27, 2016 at 10:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .