> for i in `ls kernel.*`; do > cat $i | /usr/lib/sendmail linux-kernel at lists.real-time.com; > sleep 5s; > done find . -type f -maxdepth 1 -name kernel.\* -exec cat {} \| /usr/lib/sendmail linux-kernel at lists.real-time.com \; Not sure if the escape on the pipe is right, but find is your underrated friend.