#!/bin/sh

LIST=`ls *.[Tt][Pp][Ll]`

for i in $LIST; do

    ii=`basename $i|tr A-Z a-z`

    tr -d '\r' <${i} | tr A-Z a-z>${ii}

done