Skip to content

Instantly share code, notes, and snippets.

@peko
Created January 23, 2020 21:26
Show Gist options
  • Select an option

  • Save peko/081b51dc4722f0bc6977c23bc3d5d823 to your computer and use it in GitHub Desktop.

Select an option

Save peko/081b51dc4722f0bc6977c23bc3d5d823 to your computer and use it in GitHub Desktop.

Revisions

  1. peko created this gist Jan 23, 2020.
    2 changes: 2 additions & 0 deletions remove_bad_jpegs.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    #!/bin/bash
    find -iname "*.jpg" -print0 | xargs -P 10 -0 jpeginfo -c | grep -e WARNING -e ERROR | cut -d ' ' -f 1 | xargs rm