Created
September 7, 2018 06:03
-
-
Save jamesridgway/43b3910aa0089c0281c928dc44a44f9b to your computer and use it in GitHub Desktop.
Use exiftool to find CR2 files with a normal AEB Bracket Value
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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