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?


On Tue, Nov 29, 2011 at 3:15 PM, Tim McDaniel <tmcd@panix.com> wrote:
> I don't have the time to experiment at the moment...

Likewise, but it seems likely some existing utilities like "line" or
"head -n1" might do the job. E.g.

foo=$(line < file)
foo=$(head -n1 file)

--
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]