home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 2 / 2828 < prev    next >
Encoding:
Internet Message Format  |  1991-02-22  |  1.8 KB

  1. From: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall)
  2. Newsgroups: comp.lang.perl,alt.sources
  3. Subject: Re: An AWK script to check "junk" for newsgroups
  4. Message-ID: <11548@jpl-devvax.JPL.NASA.GOV>
  5. Date: 22 Feb 91 00:31:04 GMT
  6.  
  7. In article <u4+nMD@ppcger.ppc.sub.org> Sepp@ppcger.ppc.sub.org (Josef Wolf) writes:
  8. : dglo@ADS.COM (Dave Glowacki) writes:
  9. : ] Since, as a rule, EVERY C or shell program posted must be followed up
  10. : ] by a PERL script, here's my version of NEWJUNK.
  11. : Well. Fine fine. But what about using standard-tools? Which *IX is
  12. : _delivered_ with Perl?
  13.  
  14. Convex's OS.  BSD 4.4 will have it.  It's included with GNU.  Eventually
  15. everyone will include it, I suspect.
  16.  
  17. : Now here is my version of NEWJUNK. It could have been better, but older
  18. : versions of gawk have these ugly memory-leak, so you have to sort out
  19. : the 'Newsgroups:' lines and pipe it into gawk :-(
  20.  
  21. Well. Fine fine. But what about using standard-tools? Which *IX is
  22. _delivered_ with gawk?  :-)
  23.  
  24. : The awk-version will most likely be slower than the C-version and the
  25. : Perl-Version, but it schould run on most *IX with little modifications.
  26.  
  27. Right.
  28.  
  29. On my Vax:
  30.  
  31. $ awk -f newjunk.awk
  32. awk -f newjunk
  33. awk: syntax error near line 6
  34. awk: illegal statement near line 6
  35. awk: syntax error near line 11
  36. awk: illegal statement near line 11
  37. awk: syntax error near line 12
  38. awk: illegal statement near line 12
  39. awk: syntax error near line 15
  40. awk: illegal statement near line 15
  41. awk: syntax error near line 16
  42. awk: illegal statement near line 16
  43. awk: syntax error near line 19
  44. awk: illegal statement near line 19
  45. awk: syntax error near line 20
  46. awk: illegal statement near line 20
  47. awk: syntax error near line 27
  48. awk: bailing out near line 27
  49.  
  50. On my Sun:
  51.  
  52. $ nawk -f newjunk.awk
  53. nawk: empty regular expression
  54.  source line number 51
  55.  context is
  56.          >>> // <<<  {
  57.  
  58.  
  59. Your "standard" tools ain't so standard.   :-(
  60.  
  61. Larry
  62.