title: Shell script to take multiple user input in single file
body: <p>A shell script should take multiple condition in single line input and it should take one end of input character to perform next operation. ie. </p>
  
  <pre><code>#!/bin/bash
  #Functions are defined here 1 2 3 4 5
  
  
  echo "choice"
  echo 
  echo "[1] one"
  echo "[2] two"
  echo "[3] three"
  echo "[4] four"
  echo "[5] five"
  echo
  read -p "Enter choice:  " ch
          if [ "$ch" = "1" ]; then
          function_1
          else
          if [ "$ch" = "2" ]; then
          function_2
          else
          if [ "$ch" = "3" ]; then
          function_3
          else
          if [ "$ch" = "4" ]; then
          function_4
          else
          if [ "$ch" = "5" ]; then
          function_5
  fi
  fi
  fi
  fi
  fi
  </code></pre>
  
  <p>now say end of input taking denoted by 'e' hence if I execute the .sh file and in "Enter choice"</p>
  
  <pre><code>$Enter choice: 1 3 5 e
  </code></pre>
  
  <p>it should execute 1 3 and 5th function one by one
  how to do that?</p>