Given an alias that lists last modified files, like this:
alias lt=’ls -ltc|head -10′
is there a way to determine the lines displayable so I could have a filter/limit that is a function of that.
Not concerned about other issues like line-wrapping etc.
The number of lines displayable on the current terminal is available in the
$LINESvariable.