pick - interactive selection of items

This commit is contained in:
Adolfo Perez Alvarez 2023-06-28 13:54:33 +02:00
parent 5913fd722a
commit ae82639757

8
pick Executable file
View File

@ -0,0 +1,8 @@
#!/usr/bin/env ksh
(( $# == 0 )) && exit 64
(( $# == 1 )) && echo $1 && exit 0
select choice in "$@"
do
print $choice
break
done