on 12/6/01 8:13 AM, [EMAIL PROTECTED] at
[EMAIL PROTECTED] wrote:

> I've also requested this.  Suggested syntax:
> 
>   filter <container> excluding <expression>
> 
> It should be one of those things where a relatively small programming effort
> produces a considerable expansion in facility.

This is very fast:

 put url "file:harddrive/somefile.txt" into dataToFilter
 
 repeat for each line x in dataTofilter
    if x contains (expression) then
       next repeat
    else
      put x & cr after dataOutPut
    end if
  end repeat
 
put dataOutPut into url "file/processed/theFilteredData.txt"

I have processed lists up to 120,000 lines with the above in under 2 secs

Hinduism Today

Sivakatirswami
Editor's Assistant/Production Manager
[EMAIL PROTECTED] 
www.HinduismToday.com, www.HimalayanAcademy.com,
www.Gurudeva.org, www.hindu.org

Read The Master Course Lesson of the Day at
http://www.gurudeva.org/lesson.shtml

_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to