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/bash | |
set -e #Exit as soon as any line in the bash script fails | |
imageCounter=0 | |
for filename in *.jpg | |
do | |
imageCounter=$((imageCounter+=1)) | |
#extracting info from file name | |
year="${filename:4:4}" | |
month="${filename:8:2}" |