How to escape ^M from svn:eol-style native
问题 We have specified eol-style:native property in our subversion repository for shell script; this gets rid of ^M characters which are included when file is edited on Windows and executed on UNIX box. But recently we ran into an issue: One shell script had following statement written: sed 's/^M//g' source_file > target_file to replace ^M characters from a data file. But when the script is checked-in in subversion and updated on unix box the statement becomes: sed 's/ //g' source_file > target