okay, i seem to have a problem with the search command which i used.
echo -n "Title:"
echo -n "Author:"
price_check=`grep $Title fruit | grep $Author | awk -F":" '
if [ "$price_check"="$Author" ] ; then
echo "book exist"
echo " Book does not exist"
for example, the user is to input title as "Persia" and "Author" as John. i will then use grep to search for lines which contain the title, then pipe it into another grep command which will then search for author based on the row available, then after that print $3 right?
but for some reason, when i did a check on it, it does not seem to work. when i input data which is not in the database, it still displays the message "book exist" instead of telling me "book does not exist".
What is the correct format or coding to be used to do a search based on two inputs?