Skip to content

Instantly share code, notes, and snippets.

View fmorgner's full-sized avatar

Felix Morgner fmorgner

View GitHub Profile
#! /usr/bin/env bash
# all files "*[0-9].mp4" to menu e.g:
# good : gear-v1.mp4
# bad : gear-v1m.mp4
# menuentries: "${FN} +"
MENU="`ls -Rt1 *[0-9].mp4 | sed '-e s/^\(.*\)$/\1 +/'`"
FN=`dialog --menu "Multiply video" 0 0 13 ${MENU} 3>&1 1>&2 2>&3 3>&-`
if [ $? -eq 0 ]