The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
script to ask the user to select a number
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
script to ask the user to select a number
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
3
(
permalink
)
03-11-2009
radoulov
addict
Join Date: Jan 2007
Location: Варна, България / Milano, Italia
Posts: 2,926
If your
shell
supports the
select
construct:
Code:
PS3='choose a script: ' select s in *sh; do ./"$s" break done
radoulov
View Public Profile
Find all posts by radoulov
Find radoulov's past nominations received
Find radoulov's present nominations given