List files and show them in a menu with bash

后端 未结 2 1133
日久生厌
日久生厌 2021-01-01 19:38

I am trying to use the files in a directory as options in a bash script. The user should be able to select one and then pass the name of the selected file into a variable. S

2条回答
  •  失恋的感觉
    2021-01-01 20:27

    Don't miss percol, fzy, smenu and friends. They'll happily take from stdin, present a user-friendly select menu with interactive filter, then pipe selected lines out again.

提交回复
热议问题