Last active
November 6, 2018 19:44
-
-
Save machiq/6ef72ac89e5dc4b66d48a013a6a43caa to your computer and use it in GitHub Desktop.
Revisions
-
machiq revised this gist
Nov 6, 2018 . 2 changed files with 17 additions and 14 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,14 +0,0 @@ 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ #!/bin/bash #File: stillImage-remove-meta-v003.sh # # 2018-11-02 - Matt Crnich - v001 - Use exiftool to remove still image metadata # 2018-11-06 - Matt Crnich - v002 - quieted output # 2018-11-06 - Matt Crnich - v003 - added awk to calculate total number of processed files # # echo "enter path" read path for srcImagePath in "$path" do fileProcTotal=$(find "$srcImagePath" -not -type d -not -path '*/\.*' -type f -name '*.jpg' -exec exiftool -all= {} + | awk '{ sum += $1; } END { print sum; }') echo "$fileProcTotal" "total files processed" done -
machiq revised this gist
Nov 6, 2018 . 1 changed file with 1 addition and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -10,6 +10,5 @@ read path for srcImagePath in "$path" do find "$srcImagePath" -not -type d -not -path '*/\.*' -type f -name '*.jpg' -exec exiftool -all= {} \; done -
machiq created this gist
Nov 2, 2018 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ #!/bin/bash #File: stillImage-remove-meta-v001.sh # # 2018-11-02 - Matt Crnich - v001 - Use exiftool to remove still image metadata # # echo "enter path" read path for srcImagePath in "$path" do find "$srcImagePath" -not -type d -not -path '*/\.*' -type f -name '*.jpg' exiftool -all= "$srcImagePath" done