Skip to content

Instantly share code, notes, and snippets.

@emaV
Created March 6, 2016 16:19
Show Gist options
  • Save emaV/91daf2c8c1bdf5e8d96f to your computer and use it in GitHub Desktop.
Save emaV/91daf2c8c1bdf5e8d96f to your computer and use it in GitHub Desktop.
touch sorted
a=0; for i in *.m4v; do ((a++)); if [ $a -lt 10 ] ; then date="0306120$a" ; else date="030612$a"; fi; echo "$i - $a - $date"; touch -t $date "$i"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment