Created
October 12, 2022 08:22
-
-
Save GabrielVidal1/e3eb6667aa4ed907b27293f456ea7f65 to your computer and use it in GitHub Desktop.
Set correct date to glanceback downloaded pictures
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 | |
find . -name '*.png' -type f -exec sh -c ' | |
for file do | |
touch -t $(echo "${file%.*}0900" | sed -E "s/-//g" | cut -c3-) ${file} | |
done' sh {} + |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment