Bash 3.1.17(8): Scripts on textmode mount get problems with CR characters

Matthew Woehlke mwoehlke@tibco.com
Fri Oct 27 20:23:00 GMT 2006


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

...or:
$ cat <file> | tr -d '\r'

-- 
Matthew
"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
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list