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

[REBOL] Re: Newbie: Grep question

From: andreas:bolka:gmx at: 13-Jul-2004 1:12

Monday, July 12, 2004, 9:55:28 PM, Kai wrote:
> what is a simple way to obtain a list of text files containing a > certain string from a directory ?
simple-grep: func [ pattern [any-string!] dir [file!] /local files ] [ remove-each file files: read dir [ not find/any read join dir file pattern ] ] -- Best regards, Andreas