Last active
October 3, 2019 22:11
-
-
Save s4parke/21e83e345eb8fa844ddac3b15c84bf7b to your computer and use it in GitHub Desktop.
Create sidecar files for each photo in a directory.
This file contains hidden or 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 | |
shopt -s nullglob | |
PHOTOS=$HOME/tmp/pics/ | |
for p in $PHOTOS/*.jpg | |
do | |
echo "Creating XMP sidecar file for $p ...\n" | |
touch $PHOTOS/$p.xmp.xml | |
echo "\n\n Creating SHA256 sidecar file for ... $p\n" | |
openssl dgst -sha256 $p > $PHOTOS/$p.sha.txt | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment