To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.faqOpen lugnet.faq in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 FAQ / 167
    Re: New LUGNET directory structre? —Jeremy H. Sproat
   (...) Todd, I'm shocked! Awk? In a Perl world? :-, Cheers, - jsproat (26 years ago, 5-May-99, to lugnet.faq)
   
        awk vs. perl for simple tasks —Todd Lehman
   (...) Yup! It's a Perl world, but awk is still a great thing! It's hardly my favorite general-purpose programming language, but other than grep and sort and cat and uniq, it's by far my favorite command-line pipe. I think perl has a command line (...) (26 years ago, 5-May-99, to lugnet.faq, lugnet.off-topic.geek)
   
        Re: awk vs. perl for simple tasks —Jeremy H. Sproat
     (...) Hmmm... I *think* a2p handles this by giving the perl script the "while(<>)" loop. I don't think perl will do that by itself. (...) Check perlvar, in the section on $/ (input record separator) -- in Perl, it can only be a regular string, but (...) (26 years ago, 5-May-99, to lugnet.off-topic.geek)
    
         Re: awk vs. perl for simple tasks —Todd Lehman
     (...) 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)
    
         Re: awk vs. perl for simple tasks —Jeremy H. Sproat
      (...) Hmmm, I don't think I'm old enough for that yet. :-D I've just picked up Perl relatively recently. I'd hesitate to do a 100 Mb STDIO pipe on any MS platform. In DOS and Win16/95/98 (which are single-tasking OS's no matter what MS tells you), (...) (26 years ago, 6-May-99, to lugnet.off-topic.geek)
    
         Re: awk vs. perl for simple tasks —Jeremy H. Sproat
     (...) 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. (URL) Jeremy H. Sproat <jsproat@geocities.com> (URL) the Force be with (...) (26 years ago, 18-May-99, to lugnet.off-topic.geek)
    
         Re: awk vs. perl for simple tasks —Todd Lehman
     (...) 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)
   
        Re: awk vs. perl for simple tasks —Tim Rueger
   (...) That's in reference to the awk idiom: awk '{ print $4 }' which is much longer to do in perl. I personally use this as a shell command inside Emacs all the time. I'm not good at perl one-liners. -Tim (26 years ago, 15-May-99, to lugnet.off-topic.geek)
   
        Re: awk vs. perl for simple tasks —Todd Lehman
   (...) Awww, it's not _that_ much longer in perl: perl -alne 'print $F[3]' although it certainly doesn't roll off the tongue quite as nicely. (...) Can't columns be grabbed easily in Scheme/Lisp? --Todd (26 years ago, 15-May-99, to lugnet.off-topic.geek)
 

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