Remove lines containing a string from all files in directory

view full story

http://stackoverflow.com – My server has been infected with malware. I have upgraded my Linux server to the latest version and no new files are being infected, but I need to clean up all the files now. I can locate all the files doing the following: grep -H "gzinflate(base64_decode" /home/website/data/private/assets/ -R | cut -d: -f1 But, I want to now delete the line containing gzinflate(base64_decode in every single file. (HowTos)