Prueba con...

Code:
alias mostrar {
  var %ti = 1
  while (%ti <= $lines($1)) { 
    if ($read($1,%ti)) echo -a $read($1,%ti)
    inc %ti
  }
}


Maybe the mistake is in the white lines