On 10/21/13 09:25, STeve Andre' wrote:
Most cool, thank you.  I can use a 'for i in ...' around it, and watch for
any output which is an error.

Very useful; thanks again.

It should be

$ convert image.jpg /dev/null 2> /dev/null

though...                     ^--- Note

Oneliner on the fly (well, split up for readability ;):

$ find $some_path -iname '*.jpg' \
        -exec sh -c 'convert "$0" >/dev/null 2>&1' {} \; \
        -exec mv {} /path/to/crappy_images/ \; \
        -print

Reply via email to