delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
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 |
Reply-To: | <Jan DOT Schormann AT BrainLAB DOT com> |
From: | "Jan Schormann" <Jan DOT Schormann AT BrainLAB DOT com> |
To: | <cygwin AT cygwin DOT com> |
Subject: | RE: sed: altered results in bash and cmd |
Date: | Sat, 4 Dec 2004 15:04:52 +0100 |
Message-ID: | <KCEOLMMHICICJKHPFOALAEKPCNAA.Jan.Schormann@BrainLAB.com> |
MIME-Version: | 1.0 |
In-Reply-To: | <41B19CA6.6090203@schoenhaber.de> |
X-OriginalArrivalTime: | 04 Dec 2004 14:04:52.0858 (UTC) FILETIME=[39DDC5A0:01C4DA0A] |
X-Spam-Status: | No, hits=-105.4 required=6.0 tests=AWL,BAYES_01,IN_REP_TO,MSGID_GOOD_EXCHANGE, QUOTED_EMAIL_TEXT,RCVD_IN_ORBS,USER_IN_WHITELIST version=2.55 |
X-Spam-Level: | |
X-Spam-Checker-Version: | SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) |
X-IsSubscribed: | yes |
Hi, > C:\>E:\cygwin\bin\echo.exe '/^ .*$/d' > / .*$/d > I'm not really sure but I think cmd doesn't treat single quotes as > quoting characters - at least not in the way bash does. That's true. In addition, the '^' in cmd is an escape character, like the backslash in sh. Search for "string literals" in the XP help and support center. Also, why not $ grep -v "^ " filename (slightly faster ;-) HTH, Jan. -- 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 |