This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: sed: altered results in bash and cmd


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]