Skip to content

Instantly share code, notes, and snippets.

@kencoba
Created June 14, 2017 08:27
Show Gist options
  • Save kencoba/09288b2fc90e871a92ad7e49b7a93f80 to your computer and use it in GitHub Desktop.
Save kencoba/09288b2fc90e871a92ad7e49b7a93f80 to your computer and use it in GitHub Desktop.
make difference data.
#!/usr/bin/env zsh
if [ $# -ne 2 ]; then
echo "$# args specified" 1>&2
echo "usage: sh ./makeDiffs.sh marker_directory target_directory" 1>&2
echo "caution! : the subdirectories of target_directory must be same the marker_directory's subdirectories."
exit 1
fi
for marker in $1/**/*.png
do
./diffs.sh $marker ${${marker%/*}/$1/$2} > ${${marker##*/}/.png}.txt
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment