on *:TEXT:*:#chan:{
if ($1 == !search) && ($2 != $null) {
write -c results.txt
filter -ff file.txt results.txt $replace(* $+ $2- $+ *,$chr(32),*)
if ($filtered) {
var %i = 0
while %i < 5 {
inc %i
msg $chan $read(results.txt,n,%i)
}
}
else { msg #chan Nothing Found }
}
}