#!/bin/sh for file in $(ls $1/*.wav); do ffmpeg -i $file -codec:a libvorbis $file.ogg done