for i in $1 do tr -d '\015\035' < $1 > tempfile mv tempfile $1 done