sed: altered results in bash and cmd

Jan Schormann Jan.Schormann@BrainLAB.com
Sat Dec 4 14:04:00 GMT 2004


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/



More information about the Cygwin mailing list