Date: Sat, 19 Feb 2011 22:46:15 -0700 From: Chad Perrin <perrin@apotheon.com> To: FreeBSD Mailing List <freebsd-questions@FreeBSD.ORG> Subject: Re: variable line-display pager? Message-ID: <20110220054615.GA90008@guilt.hydra> In-Reply-To: <20110219233736.GA20393@thought.org> References: <20110219233736.GA20393@thought.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--OXfL5xGRrasGEqWY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Feb 19, 2011 at 03:37:38PM -0800, Gary Kline wrote: >=20 > Need help findind a way of using existing unix utilities to diplay > chunks of N lines of a text files. Here N <=3D the number of lines in > the file. >=20 > 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=20 > 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. --=20 Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] --OXfL5xGRrasGEqWY Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAk1gqqcACgkQ9mn/Pj01uKXhJQCgxDCqk+iAIQ+W0kYTihDtnqxG fjYAoOU0tyqmDMxTgG7L5CZG9E9RJSci =0Wi/ -----END PGP SIGNATURE----- --OXfL5xGRrasGEqWY--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110220054615.GA90008>