I have many files in a folder tree, of which some are filled with zeros and others are real files.
How can I delete files filled with zeros recursively?
|
I have many files in a folder tree, of which some are filled with zeros and others are real files. How can I delete files filled with zeros recursively? |
|||||||||||
|
|
You should be able to identify sparse files by using the find command:
You can probably add some more find parameters to look for semi-sparse files, though those will probably depend more on your specific situation. source: http://www.commandlinefu.com/commands/view/8757/find-sparse-files |
|||
|
|