This is the mail archive of the
mailing list for the Cygwin project.
Re: Bash 3.1.17(8): Scripts on textmode mount get problems with CR characters
Long, Phillip GOSS wrote:
U don't have d2u on all platforms, but U probably _do_ have awk or
gawk on every platform. I came up with a simple fix for the CRLF
problem when I encountered it, which is still klugy, but works on
every POSIX or Cygwin platform:
gawk '//' fileFromTextMount > fileWithLFOnlyOnBinMount
$ cat <file> | tr -d '\r'
"Two IIRC's must make a right" -- Larry Hall (paraphrased)
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html