This file contains 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/sh | |
# Go to the root of images folder | |
# Run for each type of image, for example, PNG: | |
# $ find . -type f -name '*.png' -exec ~/path/to/script/bulk-image-processing.sh {} \; 2>&1 | tee log-png.txt; | |
file="${1}" | |
basename=${file%.*} | |
extension="${file##*.}" | |
copiedFile="$basename"_"ORIGINAL.$extension" |