delorie.com/archives/browse.cgi | search |
Bob McGowan wrote: > But sed writes to standard output. So the correct answer (I think) is > that, to capture the "dos2unix" output, the script would need to be > redirected to a file. If the file is in a binary mounted environment, > then it will be UNIX format, if it is text mounted it would continue to > be DOS format. > > Is this an accurate analysis? Indeed. To get rid of the \r you only have to start sed now, doing nothing but writing it's input to a binary mounted output file. Corinna -- Corinna Vinschen Cygwin Developer Cygnus Solutions, a Red Hat company -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |