echo "Main Menu"
echo "Press 1 for using Grep Command"echo "Press 2 for using Egrep Command"echo "Press 3 for using Fgrep Command"read acase $a in1) echo "For single pattern search, Enter Pattern below :"read bgrep "$b" City_names.txt;;2) echo "For double Pattern search, Enter b,c pattern :"read bread cegrep "$b" City_names.txtgrep -E "$c" City_names.txt;;3) echo "For Pattern From a File, Enter Pattern :"read bgrep -F "$b" City_names.txt;;esac
0 Comments