#!/bin/sh wavdir=/home/mats/multimedia/sound/wav if [ $# -eq 0 ]; then ls $wavdir else wavplay -q $wavdir/$1.wav 2>/dev/null & fi .