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

[REBOL] Printing several lines

From: rick_falls:ho:tmail at: 13-Jul-2001 20:54

Hello, Could someone tell me how to print several lines once a search word has been found in a text file.I am searching a text file of saved e-mails and would like to print the line containning the search word and the next 3 or 4 lines of info. Thanks Rick ************What I have so far************************************* REBOL[ Title: "Database search" Date: 13-July-2001 Version: 1.0.0 Purpose: "E-mail database search" ] prin "Enter search word............." name: input customers: read/lines %test3.xml foreach customer customers [if find customer name [ print customer]]