Skip to content

Instantly share code, notes, and snippets.

@topchul
Last active January 4, 2016 16:19
Show Gist options
  • Select an option

  • Save topchul/8646995 to your computer and use it in GitHub Desktop.

Select an option

Save topchul/8646995 to your computer and use it in GitHub Desktop.
remove Xmp-Meta in Image on all subdirectories with exifTool
# 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