Hm. Does anyone have a little shell script that does this:
- Find all picture files
- Check if it has EXIF data and if yes, rename the file to YYYYMMDD_HHMMSS using the EXIF creation date
- If NOT, rename the file to the same pattern, but use the filesystem last modified date
I have `for img in $(ls *.[Jj][Pp][Gg] 2> /dev/null); do exiv2 -r'%Y%m%d_%H%M%S_'"$(tmp=${img%%.*};echo ${tmp##*_})" rename "$img" ; done`whicj does the first part, but fails when no EXIF