variable line-display pager?

Chip Camden sterling at
Sat Feb 19 23:52:45 UTC 2011

Quoth Gary Kline on Saturday, 19 February 2011:
> Need help findind a way of using existing unix utilities to diplay
> chunks of N lines of a text files.  Here N <= the number of lines in
> the file.
> For instance, say that my xterm/console/"Konsole" is 80x53 lines.
> My text file is around 200 lines long and I want to use more or less
> or some GUI pager to display only 15 lines at one time.  Tapping the 
> space bar would display another 15 lines and so on until EOF.  Is
> there a way of doing with with flags of the existing /usr/bin/less
> or is there some other pager that I can build?
> thanks,
> gary
> -- 
>  Gary Kline  kline at  Public Service Unix
>            Journey Toward the Dawn, E-Book:
>           The 7.98a release of Jottings:
> _______________________________________________
> freebsd-questions at mailing list
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at"

The -z option is supposed to do this:

less -z15 file.txt

But it appears to work only on the second and successive pages.

Sterling (Chip) Camden | sterling at | 2048D/3A978E4F  |   |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
Url :

More information about the freebsd-questions mailing list