Suppose you want the user to select keywords from a menu, we can create a script similar to
#!/usr/bin/env bash
select os in "linux" "windows" "mac"
do
echo "${os}"
break
done
Explanation:
Here select keyword is used to loop through a list ...