Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: [AWK GREP] AWK and GREP funcs, arg order

From: anton:wilddsl:au at: 18-May-2007 16:01

Hi Gregg, Ah, well now this reminds me of my FIND-FILE function, which seems to operate similarly. In find-file, I settled on having the filename-pattern first, and the optional contents-pattern second. (Designed for the console, I allow the second arg to be unset!, which is convenient.) I say you're applying the program to the files, because without any files, there's no program. So stage one is determining the files, stage two is examining the contents. Regards, Anton.