This repository contains usefull shell scripts for daily use.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
262 B

#/bin/bash
# Works only without spaces in the titles
SUFFIX=mp3
for IMG_FILE in *.mp4
do
#strip .mp4 from file name
IMG_FILE_NAME=${IMG_FILE%.*}
echo "avconv -i ${IMG_FILE} ${IMG_FILE_NAME}.${SUFFIX}"
avconv -i ${IMG_FILE} ${IMG_FILE_NAME}.${SUFFIX}
done