delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <f60fe000807300658h240d8775sbc13a2561dc44daf@mail.gmail.com> |
Date: | Wed, 30 Jul 2008 09:58:28 -0400 |
From: | "Mark J. Reed" <markjreed AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Can't use special characters \n or \r |
In-Reply-To: | <001e01c8f24a$d3292590$9601a8c0@CAM.ARTIMI.COM> |
MIME-Version: | 1.0 |
References: | <18725646 DOT post AT talk DOT nabble DOT com> <009601c8f226$8f3344c0$9601a8c0 AT CAM DOT ARTIMI DOT COM> <f60fe000807300625r776876d5ra294a3c3072f9ec7 AT mail DOT gmail DOT com> <001e01c8f24a$d3292590$9601a8c0 AT CAM DOT ARTIMI DOT COM> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
On Wed, Jul 30, 2008 at 9:47 AM, Dave Korn wrote: > You omitted a vital qualifier from my earlier post ... Sorry. I certainly had no intention of misrepresenting what you said. I interpreted the newline thing not as a qualifier but as a separate point, which I didn't attempt to contradict. It's certainly true that you can't treat the newline like any other character with sed because of its line-oriented nature. But that doesn't change the fact that "normal" sed - at least, the one that comes in /usr/bin on Cygwin - does, in fact, "speak C-style escape chars". And since it has no trouble with carriage returns, the main thing the OP was trying to do works fine. Although, as y'all noted, d2u would be the simpler way to do it. -- Mark J. Reed <markjreed AT gmail DOT com> -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |