From owner-freebsd-questions@FreeBSD.ORG Sun Feb 20 14:12:05 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6664C106566C for ; Sun, 20 Feb 2011 14:12:05 +0000 (UTC) (envelope-from bonomi@mail.r-bonomi.com) Received: from mail.r-bonomi.com (mx-out.r-bonomi.com [204.87.227.120]) by mx1.freebsd.org (Postfix) with ESMTP id 3BA788FC15 for ; Sun, 20 Feb 2011 14:12:04 +0000 (UTC) Received: (from bonomi@localhost) by mail.r-bonomi.com (8.14.4/rdb1) id p1KEH7bf048132 for freebsd-questions@freebsd.org; Sun, 20 Feb 2011 08:17:07 -0600 (CST) Date: Sun, 20 Feb 2011 08:17:07 -0600 (CST) From: Robert Bonomi Message-Id: <201102201417.p1KEH7bf048132@mail.r-bonomi.com> To: freebsd-questions@freebsd.org In-Reply-To: <20110220002300.GA21231@thought.org> Subject: Re: variable line-display pager? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Feb 2011 14:12:05 -0000 > From owner-freebsd-questions@freebsd.org Sat Feb 19 18:28:20 2011 > Date: Sat, 19 Feb 2011 16:23:00 -0800 > From: Gary Kline > To: FreeBSD Mailing List > Cc: > Subject: Re: variable line-display pager? > > On Sat, Feb 19, 2011 at 03:52:40PM -0800, Chip Camden wrote: > > 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@thought.org http://www.thought.org Public > > > Service Unix > > > Journey Toward the Dawn, E-Book: http://www.thought.org > > > The 7.98a release of Jottings: http://jottings.thought.org > > > > > > _______________________________________________ > > > freebsd-questions@freebsd.org mailing list > > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions To > > > unsubscribe, send any mail to > > > "freebsd-questions-unsubscribe@freebsd.org" > > > > The -z option is supposed to do this: > > > > less -z15 file.txt > > > > But it appears to work only on the second and successive pages. > > > > Oh. So _that's_ why. I tried less -m 15 [because the man pages sais > z=N; i just tried what you did with -z15. Full page first time, 15 > lines each spacebar thereafter. > > Zank you, Sir Chip.. Anybody else? I'm loathe to use anything gui, but > here's where I'll be happy w ith something GUI THat i can squeeze my > "15" or small-n lines' worth into. Can'y believe that there is nothing > for all theses years.... I mean, geewhiz! Any idea where I Should look > in ports or how to google this? > how hard can it be? stty rows=15; less filename