#!/bin/bash

for f in "$@"; do
  mpg321 -w "${f/.mp3/.wav}" "$f";
done
