Skip to content

Instantly share code, notes, and snippets.

@judavi
Created June 28, 2019 22:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save judavi/ed4bc2fdbdcbb03a05eb7c1583d43f8e to your computer and use it in GitHub Desktop.
Save judavi/ed4bc2fdbdcbb03a05eb7c1583d43f8e to your computer and use it in GitHub Desktop.
Change creation date of all files in directory MacOS
for f in *; do t=$(echo $f | sed -E 's/[-. mov]//g'); touch -mt 201906211300 $f; done
#for f in *; do t=$(echo $f | sed -E 's/[-. mov]//g'); touch -mt YYYYMMDDHHMM $f; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment