To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.off-topic.geekOpen lugnet.off-topic.geek in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Off-Topic / Geek / 43
42  |  44
Subject: 
Re: awk vs. perl for simple tasks
Newsgroups: 
lugnet.off-topic.geek
Date: 
Tue, 18 May 1999 19:54:03 GMT
Reply-To: 
jsproat@geocities.STOPSPAMMERScom
Viewed: 
551 times
  
Todd Lehman wrote:
That's good if you're snarfing up relatively small files, but what if you're
processing 100 megabytes of STDIN -- say, looking through an httpd log?  And
live tail -f even?  :)

It just occurred to me how useful a live tail util would be.  How would you
implement one in Perl?  Would the one at PPT (1) be the one to check out?

Cheers,
- jsproat

1.  http://language.perl.com/ppt/index.html

--
Jeremy H. Sproat <jsproat@geocities.com>
http://www.geocities.com/SiliconValley/Horizon/5249/
May the Force be with y'all.



Message has 1 Reply:
  Re: awk vs. perl for simple tasks
 
(...) check whether the file size has changed, which, although gross in theory, is perfectly fine in practice if there aren't a zillion copies of it running. Dunno how many Unix implementations have file-change events/signals like NT does, but I'd (...) (26 years ago, 19-May-99, to lugnet.off-topic.geek)

Message is in Reply To:
  Re: awk vs. perl for simple tasks
 
(...) Aha, here it is: perl -ane (...) FS is awk is the field separator, not the record separator. The record separator in awk is RS. Hmm, doesn't look like Perl has an input field separator -- only an output field separator $, and input/output (...) (26 years ago, 6-May-99, to lugnet.off-topic.geek)

21 Messages in This Thread:








Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR