Re: Making choices with a script
matheson@mail1.facile.com (Cameron Matheson) wrote:
>I'm trying to make script that asks you what you want to do (and then
>echo's a list of choices), but I need to know what the command would be
>(like DOS's choice) to prompt the user, and how to use it.
If you want something more lightweight than the already suggested
dialog, then a closer analogue to DOS's 'choice' would be the bash
builtin 'read'. 'help read' (using 'help' as that gets you documentation
on shell builtin commands) will get you a brief description of its
function, or you can look in 'man bash'.
--
Colin Watson [cjw44@cam.ac.uk]
Reply to: