Skip to content

Instantly share code, notes, and snippets.

@lee-pai-long
Created January 20, 2016 17:03
Show Gist options
  • Save lee-pai-long/b60e25900dc9442d2b15 to your computer and use it in GitHub Desktop.
Save lee-pai-long/b60e25900dc9442d2b15 to your computer and use it in GitHub Desktop.

[LINUX] Delete all empty file in a tree

$ find </path/to/tree> -type f -size 0 -exec rm -f {} \;

An option -name can be use to specify only certain files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment