Well, that's exactly what the find statement will do ...
find -type f -size -40k -exec rm {} \;
And it doesn't matter whether a file has 1024 or 1126
bytes (aka 1KB or 1.1KB), it will be deleted. Just bear
in mind that Linux still sees 1K as 1024 bytes, not as 1000.
Cheers,
Tink
|