Hi
I need to find and delete 0-4 bytes size files in a folder.
How can I achieve that?
Hi
I need to find and delete 0-4 bytes size files in a folder.
How can I achieve that?
find /folder -type f -size -5c -exec rm {} \;
Careful, it is recursive. If you have subdirectories that shouldn't be affected below /folder use -prune in addition.