in reply to Find all JPEG files in a directory
$ file -i /foo/bar/* | perl -ne 'print "$1\n" if /(.*):\s*image\/jpeg$ +/' [download]