Have numerous image files in a directory that have been corrupted and contain only zero hex value (although some are very large)- among other images that are not corrupt.Want to search through the directory identify files that contain only zeros and delete them.
I am running this from terminal on a mac.
I am thinking grep, recursive, stop searching and eliminate from deletion any file if it contains a value other than zeros, delete zero value files with rm. However- I am a novice and do not know how to put it together.
Or have the zero files moved to a directory from which I can delete them (want to be careful not to delete any good image files.)