Search Results

Search: Posts Made By: santonio
3,409
Posted By santonio
Thanks! PRoblems solved! sed "/$Title/d"...
Thanks! PRoblems solved!

sed "/$Title/d" BookDB.txt > BookDB1.txt && mv BookDB1.txt BookDB.txt does the trick! =)
3,409
Posted By santonio
meaning? can i code it in a way that it remove...
meaning? can i code it in a way that it remove the sentence straight from the BookDB.txt itself instead of creating a new file to replace it?

---------- Post updated at 04:45 PM ----------...
3,409
Posted By santonio
i need to remove the line permanently instead of...
i need to remove the line permanently instead of prnting the non matching lines.
3,409
Posted By santonio
Deleting/Removing sentence from .txt
Hi,

now i need to remove the entires i inserted into my .txt file.

echo -n "Title: "
read Title
echo -n "Author: "
read Author
if grep -q "$Title: $Author"...
3,408
Posted By santonio
grep multiple matches
i dun seems to be able to grep the arguments i want.

eg. book.txt with description inside.

ABC:efg:5:6
HHH:JJJ:6:7

i want the user to input the book title and author they want. so when the...
1,679
Posted By santonio
Yea, as there might be chances of 2 John but of...
Yea, as there might be chances of 2 John but of different age, i must code in a way that they find the John of that particular age. In addition, is this the similar way to use for delete? just tat i...
1,679
Posted By santonio
Lets say there is this database "worker.txt" with...
Lets say there is this database "worker.txt" with john:25 where john is the name and 25 is the age.

The program will program to ask use to enter our entry.
echo -n "Name: "
read Name
echo -n...
1,679
Posted By santonio
Find similar entry in a .txt file acting as a database.
May i know how do i go along finding similar entry in a .txt file, which is used a as a "database" and post and error saying the entry existed when we key in the entry.

---------- Post updated at...
Showing results 1 to 8 of 8

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