How do I encode my mp2 audio files to ogg? Can't find a simple tutorial or anything out there.

What I want is to batch encode a number of files; title1.mp2 etc to title1.ogg etc deleting the source file after completion, any ideas anyone?