On Wed, 04 Jan 2012, James Hartleroad wrote:
But I have a shell script removeCTLM.ksh that has an embedded cntl-m as part of a regular expression, for example sed 's/^M//g' $file > tmpfile
If this is a shell programming question rather than a subversion question, then I suggest changing the script to not use an embedded control-M. Here are two ways of doing that: tr -d '\r' <"$infile" >"$outfile" control_M="$(printf '\r')" sed -e "s/${control_M}//" <"$infile" >"$outfile" --apb (Alan Barrett)