7

What's *nix terminal command to find and remove found files?

view full story
linux-howto

http://stackoverflow.com – I have a malware on my server. So I've figured out how to find all that malicious files grep -r --include*.php "Some String from files" . That seems work fine! but how to delete them? I've tried using xargs grep -r --include=*.php "FilesMan" . | xargs -I {} rm {} But got rm: cannot remove `./www/wp-content/plugins/zuglohjetok/vaoaddiy.php:$default_action = FilesMan;': No such file or directory Can someone share some magic line of code? And also I've tried to look up for all recent modified files on server by "find", but that got me tons of files. Is there any other fancy methods t (HowTos)