LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Awk + env vars q

[ILUG] Awk + env vars q

Stephen Shirley diamond at skynet.ie
Thu Apr 26 11:00:09 IST 2001


On Thu, 26 Apr 2001, Stephen Shirley wrote:

> > Have you tried the getline function in awk?
> >
> Excellant (oh yeah, and lots of doh's and head slapping for me). Thanks
> Cormac and Mark.
>
Hmm. Couldn't get that working for a while. It seems that using "getline
<file" actually open the file, and leaves the file pointer at the next
line. This means that the next time I call getline I get nothing. I had to
put in "close(file)" to get the expected behaviour. It's fine now that I
know what's up, but it had me confused for a while.

Steve
Ps. About the bumble bees, I had meant to include a footnote to say that
yes I know they've solved the problem, but it's still a handy example.

-- 
"My mom had Windows at work and it hurt her eyes real bad"





More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell