Code:
 alias word.search {
var %a = 1, %b = $findfile(<directory>,*.txt,0)
while %a <= %b {
var %file = $findfile(<directory>,*.txt,%a)
if $read(%file,w,$+(*,$chr(32),$1,$chr(32),*)) {
echo -a %file
}
inc %a
}
}
 


Usage: /word.search <word to be searched for>

There are other ways of doiing this, but this is what I was able to think of at 5:10 am