Write a menu driven program to display a menu of options and depending upon the user’s choice execute the associated command.

until [ “$selection” -eq “0” ]; do echo ” Program Menu “ echo ” 1. Display Free disk space “ echo ” 2. Display Free memory “ echo ” 3. Disk Usage “ echo ” 4. List Your Processes “ echo ” 5. Who is connected to the system? “ echo ” 0. Exit “ read selection case $selection in            1 ) df             […]

Write a shell script to calculate the total salary payable to all the employees from the employee file. The salary should be taken from the 5th field of the employee file.

Let the Employee file be (Employee.txt): 1 Tushar Coder 6-2-91 40000 2 Ankur Analyst 21-2-91 35000 3 Ravi Designer 23-4-90 37000 4 Bhupender Tester 7-6-91 41000 5 Sumit Coder 5-9-90 40000 6 Arnab Tester 12-8-90 30000 Type in the Terminal                   awk ‘{a+=$5}END{print a}’ Employee.txt