Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Feb 2011 15:52:40 -0800
From:      Chip Camden <sterling@camdensoftware.com>
To:        FreeBSD Mailing List <freebsd-questions@FreeBSD.ORG>
Subject:   Re: variable line-display pager?
Message-ID:  <20110219235240.GA2495@libertas.local.camdensoftware.com>
In-Reply-To: <20110219233736.GA20393@thought.org>
References:  <20110219233736.GA20393@thought.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--6TrnltStXW4iwmi0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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 <=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?
>=20
> thanks,
>=20
> gary
>=20
>=20
>=20
> --=20
>  Gary Kline  kline@thought.org  http://www.thought.org  Public Service Un=
ix
>            Journey Toward the Dawn, E-Book: http://www.thought.org
>           The 7.98a release of Jottings: http://jottings.thought.org
>=20
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o=
rg"

The -z option is supposed to do this:

less -z15 file.txt

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

--=20
Sterling (Chip) Camden | sterling@camdensoftware.com | 2048D/3A978E4F
http://chipsquips.com  | http://camdensoftware.com   | http://chipstips.com

--6TrnltStXW4iwmi0
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (FreeBSD)

iQEcBAEBAgAGBQJNYFfIAAoJEIpckszW26+RYCcIAKJcpbJ4TsZonZGGkzHM+B6e
C2j13OtcF4dtV4HmDot90WKA0MLx8lp2i/VnLQOyTSUcgH3kXok8TIqEVXCsPbMP
/KwZuU+jjBf6kdqxU6uZtGpLtzzFf2OVtO6JetVfvXP2Rh6F81rqTpBr+jAUAElF
TBTtkMaBJRQYhbQYWEh59BWOQYsUQJz5cAJfynCaeTAHylwzPcvh8qU036u0YNub
KS9Oyn6H2luzkROW4lfwiPcrqx90Zsy6h88Q1TxK27Ms/D+G5+NF5G2Naxkrdsav
X7dCQ2i96x6HvJTrq0prVdPKXOmpe4NtFiW76vko/fsabbrUq8W/HOFBCei6c5k=
=JtFO
-----END PGP SIGNATURE-----

--6TrnltStXW4iwmi0--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110219235240.GA2495>