#!/bin/bash set -eu if [ "$#" -ne 1 ]; then echo "USAGE: $0 FILE" exit 1 fi fullpath="$1" source fileextensions cd "$dir" ffmpeg -i "$filename.$extension" -c copy -an "$filename""_noaudio.$extension"