#!/bin/sh for file in *.wav do sox ${file} -r 8000 -c 1 `echo $file|cut -f 1 -d "."`.gsm rm $file done