Skip to content

Instantly share code, notes, and snippets.

@Seegras
Created January 10, 2019 10:56
Show Gist options
  • Save Seegras/74b19987b6e441f3bfd9df5e43d57cca to your computer and use it in GitHub Desktop.
Save Seegras/74b19987b6e441f3bfd9df5e43d57cca to your computer and use it in GitHub Desktop.
#!/bin/sh
#
# sorts gopro-files to the correct order
#
rm *.THM
mmv '*.JPG' '#1.jpg'
mmv '*.MP4' '#1.mp4'
mmv 'GOPR*.mp4' 'GO-#1-00.mp4'
mmv 'GP??*.mp4' 'GO-#3-#1#2.mp4'
mmv 'GOPR*.mkv' 'GO-#1-00.mkv'
mmv 'GP??*.mkv' 'GO-#3-#1#2.mkv'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment