Bash - create menu, read variables from keyboard
<p>I'm trying to build a menu in Bash:</p>

<p>echo Option1
echo Option2
echo Option3
echo Option4
...
Option3 = ls -l /home/test/|wc -l</p>

<p>Now, if the users selects option 3 for instance, I would like bash to call a Linux command specific to Option 3.</p>

<p>I've been able to read what users enters from the keyboard, however I'm not able to link the Option 3 for instance with the number 3 that user enters on the keyboard:</p>

<p>$ Which option would you like: 3
You have selected Option3. Would you like to continue?Y</p>

<p>You have 20 files in the home directory.</p>

<p>Something like that.</p>