the request has been accepted
the scan is successful at following time
there are no invalid packages
5169378 : map : Permission Denied
the request has been accepted
Now what i want do is
I want to search the today.txt file and
if i find "permission denied" then I have to delete the whole line.
so that the text looks like this,
the request has been accepted
the scan is successful at following time
there are no invalid packages
the request has been accepted
Do a quick search on this forum for simple sed commands. I'm not handy with sed myself, but it will allow you to do exactly what you want -- edit the file in one step.