Posts

os

#!/bin/sh      The sign #! is called she-bang and is written at the top of the script. It passes instructions to program /bin/sh clear i="y" echo "Enter name of database " # displays a line of text read db        # take the input from keyboard while [ $i = "y" ] do clear     echo "1.View the Data Base oF Books" echo "2.View Specific Books " echo "3.Add Books " echo "4.Delete Books " echo "5.Exit " echo "Enter your choice " read ch     case $ch in         1)cat $db;;        # cat-used to display the contents of a small file on terminal         2)echo "Enter id "           read id             grep -i "$id" $db;;        #grep -print those lines which matches the pattern  -i is ca...