Skip to content

Instantly share code, notes, and snippets.

@GabrielVidal1
Created October 12, 2022 08:22
Show Gist options
  • Save GabrielVidal1/e3eb6667aa4ed907b27293f456ea7f65 to your computer and use it in GitHub Desktop.
Save GabrielVidal1/e3eb6667aa4ed907b27293f456ea7f65 to your computer and use it in GitHub Desktop.
Set correct date to glanceback downloaded pictures
#!/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