Bash: Delete files of less than size

The following one liner can delete files less than 1KB:

find . -iname * -size -1k -delete

The -iname can be used as a filter mask for file name.


You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.