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 |
Subject: | sed: altered results in bash and cmd |
From: | fergus <fergus AT bonhard DOT uklinux DOT net> |
Reply-To: | fergus AT bonhard DOT uklinux DOT net |
To: | cygwin AT cygwin DOT com |
Cc: | fergus AT bonhard DOT uklinux DOT net |
Message-Id: | <1102155735.2524.6.camel@82-40-123-11.cable.ubr01.pert.blueyonder.co.uk> |
Mime-Version: | 1.0 |
Date: | Sat, 04 Dec 2004 10:22:19 +0000 |
X-OriginalArrivalTime: | 04 Dec 2004 10:22:52.0703 (UTC) FILETIME=[366F6AF0:01C4D9EB] |
To delete all lines beginning with a <space> in a text file, this command (a) seems correctly composed and (b) works: sed '/^ .*$/d' filename but if I use it in a cmd window, the result is that all lines _containing_ a space are deleted, not just those beginning with a space. In general, and assuming PATHs etc correctly set, should not Cygwin command lines work identically in bash and cmd windows? Is this a problem with sed, with (my) command line syntax above, or with my understanding of what should work when? XP Pro SP2. Thank you. Fergus -- 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 |