This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: sed: altered results in bash and cmd
- From: "Jan Schormann" <Jan dot Schormann at BrainLAB dot com>
- To: <cygwin at cygwin dot com>
- Date: Sat, 4 Dec 2004 15:04:52 +0100
- Subject: RE: sed: altered results in bash and cmd
- Reply-to: <Jan dot Schormann at BrainLAB dot com>
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/