Skip to content

Instantly share code, notes, and snippets.

@Lucaber
Created August 23, 2018 01:08
Show Gist options
  • Select an option

  • Save Lucaber/7340f61e92318b6623616305e9af5dc0 to your computer and use it in GitHub Desktop.

Select an option

Save Lucaber/7340f61e92318b6623616305e9af5dc0 to your computer and use it in GitHub Desktop.
Linux reset file date "last changed" to "creation date"
find . | while read movie;do touch -d $(date -r $(stat -f %B "$movie") +%Y-%m-%d%T) "$movie"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment