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: Shell script - is this expected behaviour?


From: Tim McDaniel
Subject: RE: Shell script - is this expected behaviour?

>I don't have the time to experiment at the moment, but I'm pretty sure
>that some of the standard tools append a line terminator if it's not
>already on the last line of their input.  sed or awk or gawk, maybe?
>Anyway, if you can stumble on such a program, it can save you having
>to write and maintain and distribute a filter to all your
>environments.

FWIW, "grep ^" seems to do the trick.
--Ken Nellis

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


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