Last active
June 8, 2019 02:35
-
-
Save envygeeks/124980a742d8cd19bc12c13d60f88e8b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
find . -maxdepth 1 -name \*.mp4 -type f | while read f; do | |
date=$(mediainfo "$f" | grep -i "Recorded Date" | \ | |
sed -E 's/\s**recorded date\s*:\s*//i') | |
touch -d "$date" "$f" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment