Search Results

Search: Posts Made By: Lina_14
4,404
Posted By Lina_14
Here it is deleting data option
10)echo "Enter Id"
read id
sed '/$id/d' $db > dbs1
grep -v $id $db > dbs1
echo "Record deleted !"
cat dbs1;;

Sorry made some modification on the primary code and forgot to update here, thank...
4,404
Posted By Lina_14
It still doesnt delete the data from database!!!
Example when I put records on the database and then i want to delet a line based on ID given, in terminal its says "Data deleted" but in database still exist. Thank you for improving my code.
2,051
Posted By Lina_14
Still the same :(
its pretty the same when I exeute the comand without -v, I mean its a way better in terminal but still doesnt delete the data from database, maybe its something wrong with the whole code, idk...Thank...
2,051
Posted By Lina_14
it just doesnt work even if the mesagge printed...
it just doesnt work even if the mesagge printed is "Data deleted", anyway thanx for the replay :)
2,051
Posted By Lina_14
When I put the ID of the data I want to remove it...
When I put the ID of the data I want to remove it only copy the data to dbs1 and doesnt delete it from the database in which are the other datas.
2,051
Posted By Lina_14
The code doesnt delete records on the file.
The 10.Delete data doesnt work at all, plesase anyone could help on that. When I choose options 10 to delete a record it only copy the selected data on the other file dbs1 but doesnt delete it from...
4,404
Posted By Lina_14
Thank you for your replay
The problem is that when I record data, I want to delite not only the file but also the data from the database :/, I would apreciate any kind of help.
i="y"
echo "Enter name of database "
read db...
4,404
Posted By Lina_14
Help with database deleting data!!!
Hi, I'm new to programming in shell and I wanted to make a simple database on shell script but I'm having trouble in deleting data. I would apreciate any kind of help. Thank you in adavanced.
Showing results 1 to 8 of 8

 
All times are GMT -4. The time now is 09:33 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy