The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 06-16-2008
arghya_owen arghya_owen is offline
Registered User
  
 

Join Date: May 2008
Posts: 31
Thumbs up i want automated script

echo "Enter your choice :\c"
read num
case $num in .
1)"${TEST_HOME}"/ctrl_extract.ksh 1 ;;
2)"${TEST_HOME}"/ctrl_extract.ksh 2 ;;3)"${TEST_HOME}"/ctrl_extract.ksh 3 ;;
4)"${TEST_HOME}"/ctrl_extract.ksh 4 ;;
5)"${TEST_HOME}"/ctrl_extract.ksh 5 ;;
.........................................................
.............................................................
...............................................................
this is my script-i hv number of cases.so i dont want writing case just like above..i want a single line script between case block so that writing 100 cases is not required.