Code:
#!/bin/bash
while : #infinite loop
do
echo " what is your choice .."
read ch #expects to read only one input
echo " ok your choice is " $ch #execute the simple function with the ch arg
done
If I were to supply the input arguments on the command line I could have used.
Code:
#!/bin/bash
for ch in $@ ;do
echo " ok your choice is " $ch
done