#! /bin/sh file=`mktemp` trap "rm -f $file" EXIT INT TERM gcc -xc -lm -o $file - < main(t) { for (t=${2-0};;++t) putchar($1); } EOF $file | aplay