SHELL Script CASE

case..esac
echo "Press 1. Check Hostname"
echo "Press 2. Show Date"
echo "Press 3. Run Shell Script File"
read a
case $a in
1)hostname;;
2)date +%d/%m/%Y;;
3). /home/script/run.sh;;
*)echo "Invalid Choice"
esac

Comments

Popular posts from this blog

Oracle Database 19C Performance Tunning - PART 1

Oracle Patching Using Opatch Utility

Oracle RMAN Backup And Restore

PostgreSQL Opensource Installation in RHEL or Oracle Linux(OEL) 8 and above

Pg_pool-II Installation and Configuration