The following is very usefull in order to clean files from inwanted code inserted by hackers.
List all “htm” files contain the word “test” in folder “home”:
1 |
find /home *.*htm* -exec grep -l "test" {} \; |
Remove the text between “teststart” and “testend” of all “htm” files in folder “home”:
1 |
find /home *.*htm* -type f -print0 | xargs -0 sed -i 'teststart,testend/d' |