Skip to content

Instantly share code, notes, and snippets.

@ryanfb
Created October 15, 2013 17:31
Show Gist options
  • Select an option

  • Save ryanfb/6995359 to your computer and use it in GitHub Desktop.

Select an option

Save ryanfb/6995359 to your computer and use it in GitHub Desktop.
remove all corrupt jpg files in a directory
for i in **/*.jpg; do jpeginfo -c $i; if [ $? -eq 1 ]; then rm -v $i; fi; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment