Last active
January 4, 2016 16:19
-
-
Save topchul/8646995 to your computer and use it in GitHub Desktop.
remove Xmp-Meta in Image on all subdirectories with exifTool
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
| # remove Xmp-Meta in Image on all subdirectories with exifTool | |
| # caution: "&" <-- It will work bg jobs each exifTool. | |
| # TODO: so needs check all bg jobs finishing. | |
| find . -type f -iname '*.png' | grep -v 'build' | awk '{printf "exiftool -q -all= \"%s\" &\n", $1}' | sh | |
| # Addition count All file size of png files on subdirectories | |
| find . -iname '*.png' | awk '{printf "\"%s\" ", $1}' | sed -e 's/^/ls -alF /g' | sh | awk '{printf "+%s", $5}' | sed -e 's/^/0/g' | awk '{printf "%s\nquit\n", $1}'> ~/tc_size.tmp; bc -q ~/tc_size.tmp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment