#!/bin/bash # A script that replaces wav with sph for iFile in `ls *.wav` do newFile=`echo $iFile | sed s/wav/sph/` mv $iFile $newFile done