in reply to dos2unix problem

perl -i -pe 's/\cM*$//' foo bar baz