admin

Views:
 
Category: Entertainment
     
 

Presentation Description

No description available.

Comments

Presentation Transcript

clear: 

clear

echo "1-Delete Customer": 

echo "1-Delete Customer"

echo "2-Add Hotels": 

echo "2-Add Hotels"

echo "3-Remove Hotels": 

echo "3-Remove Hotels"

echo "4-View Hotels": 

echo "4-View Hotels"

read option: 

read option

case $option in : 

case $option in

1)echo " ": 

1)echo " "

echo "Enter customer ID ": 

echo "Enter customer ID "

read CID: 

read CID

grep -vw $CID Records >NewRecord: 

grep -vw $CID Records >NewRecord

mv NewRecord Records: 

mv NewRecord Records

echo "Customer record deleted successfully, press any key to go to previous menu....": 

echo "Customer record deleted successfully, press any key to go to previous menu...."

read a: 

read a

sh admin.sh;;: 

sh admin.sh;;

2)echo " ": 

2)echo " "

echo "Enter hotel name": 

echo "Enter hotel name"

read hotelName: 

read hotelName

echo "Enter number of rooms available": 

echo "Enter number of rooms available"

read room: 

read room

echo "Enter cab no.": 

echo "Enter cab no."

read cab: 

read cab

echo $hotelName $room $cab >>hotel: 

echo $hotelName $room $cab >>hotel

echo "Hotel added successfully, press any key to go to previous menu....": 

echo "Hotel added successfully, press any key to go to previous menu...."

read a: 

read a

sh admin.sh;;: 

sh admin.sh;;

3)echo " ": 

3)echo " "

echo "Enter Hotel name to be REMOVE": 

echo "Enter Hotel name to be REMOVE"

read Removehotel: 

read Removehotel

grep -vw $Removehotel hotel >hotel1: 

grep -vw $Removehotel hotel >hotel1

mv hotel1 hotel: 

mv hotel1 hotel

echo "Hotel removed successfully, press any key to go to previous menu....": 

echo "Hotel removed successfully, press any key to go to previous menu...."

read a: 

read a

sh admin.sh;;: 

sh admin.sh;;

4)echo " ": 

4)echo " "

cat hotel: 

cat hotel

echo "Press any key to go to previous menu....": 

echo "Press any key to go to previous menu...."

read a: 

read a

sh admin.sh;;: 

sh admin.sh;;

*)echo "Please give a valid input...": 

*)echo "Please give a valid input..."

sleep 3: 

sleep 3

sh admin.sh;;: 

sh admin.sh;;

esac: 

esac