#!/bin/bash rip cd wav for i in *.wav do lame -h "$i" "../$i.mp3" done cd .. rm -rf wav