Hi all,
my usb key has been infected by a windows virus, so that now in all my folders I've got a .exe file with the same name of the folder itself. Removing them was quite easy, since I had no windows executable on the key:
I was thinking about a one liner that would ensure me to erase only those exe that have the same name of the folder they are into. Any idea?
my usb key has been infected by a windows virus, so that now in all my folders I've got a .exe file with the same name of the folder itself. Removing them was quite easy, since I had no windows executable on the key:
Code:
find /media/usb -name '*.exe' -print0 | xargs -0 rm
I was thinking about a one liner that would ensure me to erase only those exe that have the same name of the folder they are into. Any idea?