this code works ok but i would like to make it echo the number of lines filtered for each matchtext ?
alias test {
/window -ane @filter
set %test.lines $lines(test.txt)
var %g = 1
while (%g < %test.lines) {
/filter -ww @test @filter * $+ $read(test.txt,%g) $+ *
inc %g
}
}
it sorts to the @filter window and i tryed using $filtered but it doesnt seem to work correctly
edit: also when i did get it to echo anything it seems to echo 0 for lines that didnt match is there a way to exclude those lines from being echoed ?