variable line-display pager?

Chad Perrin perrin at apotheon.com
Sun Feb 20 05:56:51 UTC 2011


On Sat, Feb 19, 2011 at 03:37:38PM -0800, Gary Kline wrote:
> 
> 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?

Actually, the more pager should scroll one page at a time, determining a
"page" by the size of the console in which it is displayed, if I remember
correctly.  Just `more filename` and start hitting the spacebar.

-- 
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20110220/52c37a73/attachment.pgp


More information about the freebsd-questions mailing list