From: Earnie B. <ea...@us...> - 2012-06-14 22:31:41
|
On Thu, Jun 14, 2012 at 5:36 PM, Eli Zaretskii <el...@gn...> wrote: >> Date: Tue, 12 Jun 2012 14:54:13 -0400 >> From: Michael Shulman <shu...@gm...> >> Cc: Mi...@fa..., gmu...@ya... >> >> Now I type this: >> sed '/ANYPATTERN/d' dos_style.txt > unix_style.txt >> I look at unix_style.txt in Windows Notepad and the terminators are >> now unix-style, which is not at all what I wanted. All the output is >> concatenated onto one very long line. > > Sounds like your port of Sed removes CR characters from the end of > each line, and uses binary output mode when it writes to a file. > > Where did you get your port of Sed? Is it per chance the MSYS build > of Sed or a Cygwin build? Use -b if you want to retain the CR. At least that is what you need for an MSYS provided sed. -- Earnie -- https://sites.google.com/site/earnieboyd |