这是我的代码,但是当我运行它时,它会删除所有以变量名 () 开头的联系人name_delete
。
read -p "please enter the contact name you want to delete:" name_delete
sed -i /$name_delete/d database
echo "the contact is deleted" ;;
这是我的代码,但是当我运行它时,它会删除所有以变量名 () 开头的联系人name_delete
。
read -p "please enter the contact name you want to delete:" name_delete
sed -i /$name_delete/d database
echo "the contact is deleted" ;;