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