I have a text file and manage to find the line through output comparison. With the book title and author name.
awk -F ':' '/KungFu Feet|Chuck Norris/' test.txt Kungfu Feet:Chuck Norris:12:1:1
Is there any way to delete the line using
awk and return the output in a bash file?
I would like to do a check for the following item before i do the deleting using awk
If (( Book = KungFu Feet && Author = Chuck Norris )); do echo "Item is found unable to delete" else echo "Deleting.."