Replace control m

Hi

I want to find ^M characters in all files in dir and subdirectory and replace .

In single file use this and change ,how can i cahnge in files under subdirectory.

perl -i -pe 's/^MZ//g' *.txt

sed -e 's/^M//g' filename >filename.new

Thanks in advance
MR

use find and -exec

The best way is to use "dos2unix" command to convert files has ^M character to standard unix format.