shell command to remove all .exe file
hi,
i have two os residing in my computer, fedora core 6 and mucrosoft windows, but recently my windows is infected by some brontok(or something..).. and this virus in every folder of the hard disk,
I have important documents and files in my disk,
before i need to backup, i have to remove all the .exe virus in each folder. that is time consuming if removed individually..
actually i wrote a simple shell command like this:
rm -v `find /mnt/d -name '*.exe' -print`
this removed all the files in the folder that has no spaces between the folder name.. but for the folder with spaces the following error was returned...
rm: cannot remove `./Linux': No such file or directory
rm: cannot remove `World/Linux': No such file or directory
rm: cannot remove `Distributions/Linux': No such file or directory
rm: cannot remove `Distributions.exe': No such file or directory
Can anyone help me !!!
|