How to delete files on server based on name?

Soldato
Joined
18 Jan 2007
Posts
19,845
Location
Land of the Scots
Not so long ago one of my websites was compromised, probably from an out of date wordpress install. I was alerted to this by Dreamhost's robot who had thoughtfully found injected code, removed it and then appended .INFECTED to the end of the original files.

This caused a lot of problems which I managed to rectify but now I have a server full of infected files, without having to go through each DIR maually deleting these is there some shell command I can run or some other process the automatically delete these files?

Thanks.
 
Back
Top Bottom