try this
Code:
alias last10 {
var %lines = $lines(filename),  %i
while (%i <= 10) {
if (nico isin $read(filename,%lines) { msg $active  $read(filename,%lines) | inc %i  }
dec %lines
}


That will be in reverse order but will be the last 10 entries that have nico in the line