Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Removing Files Of Size Zero

DZone's Guide to

Removing Files Of Size Zero

·
Free Resource
// description of your code here
This will delete all files in the current directory with size == 0.


find . -type f -size 0k -exec rm {} \; | awk '{ print $8 }'
Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}