#!/bin/sh for i in "$@" do ogg123 -d wav -f "${i%.ogg}".wav "$i" lame -b 96 -m s "${i%.ogg}".wav "${i%.ogg}".mp3 rm "${i%.ogg}.wav" done