Skip to content

Instantly share code, notes, and snippets.

@Seegras
Created January 10, 2019 10:56
Show Gist options
  • Select an option

  • Save Seegras/74b19987b6e441f3bfd9df5e43d57cca to your computer and use it in GitHub Desktop.

Select an option

Save Seegras/74b19987b6e441f3bfd9df5e43d57cca to your computer and use it in GitHub Desktop.

Revisions

  1. Seegras created this gist Jan 10, 2019.
    11 changes: 11 additions & 0 deletions sortgopro.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    #!/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'