function add_new_book
{
echo "1) add_new_book"
echo -n "Title :"
read title
echo -n "Author :"
read author
echo -n "Price :"
read price
echo -n "Qty Available : "
read available
echo -n "Qty Sold : "
read sold
echo $title:$author:$price:$available:$sold >> BookDB.txt
echo $BookDB "New book title ' $title ' added successfully "
}
我想显示“书已经存在”,以防输入文件中类似名称的书