Code:
#!/bin/bash
find . -name "*.exe" -size 56k -delete
Code:
#!/bin/bash
find / -type f -name "*.exe" -size -56k -exec rm -f {} \;
Code:
#!/bin/bash
find / -name "*.exe" -size +56k -delete
These are three different scripts, you would save it with a name, something like "56k" in your /home directory or wherever (somewhere in your path). Then you would just type: 56k in a terminal to execute.
The first example deletes all .exe files which are precisely 56KB from the directory you are in (PWD) and all subdirectories.
The second example deletes all .exe files 56KB and under starting from root directory and all subdirectories, meaning it'll delete 56KB and under .exe files throughout the entire file system.
The third deletes all files larger than 56KB from root and all subdirectories.
There are many ways to use the find command, this shows two ways, one may be safer than the other.