Skip to content

Instantly share code, notes, and snippets.

@jamesridgway
Created September 7, 2018 06:03
Show Gist options
  • Save jamesridgway/43b3910aa0089c0281c928dc44a44f9b to your computer and use it in GitHub Desktop.
Save jamesridgway/43b3910aa0089c0281c928dc44a44f9b to your computer and use it in GitHub Desktop.
Use exiftool to find CR2 files with a normal AEB Bracket Value
#!/bin/bash
# Can be used as follows to copy all files with a normal exposure to a 'normal_exposure' folder:
# ./normal_exposure.sh | xargs -I '{}' cp '{}' normal_exposure/
set -e pipefail
for file in *.CR2;
do
exiftool "$file" | grep -P "AEB Bracket Value\s+: 0" | true
if [ "${PIPESTATUS[1]}" -ne 1 ]; then
echo "$file"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment