Like Wims said, you can use /filter and then $read the output .txt
Alternatively, you could do a dirty method like...
alias {
var %line = 1
while ($read(filename.txt,w,apple*,%line)) {
echo -a $read(filename.txt,w,apple*,%line)
var %line = $calc($readn +1)
}
}
That sets the line to start the next wildcard match from to the one after the previous matched line ($readn).