From owner-freebsd-questions Sat Apr 5 13:36:22 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id NAA28645 for questions-outgoing; Sat, 5 Apr 1997 13:36:22 -0800 (PST) Received: from shire.domestic (kuebart.stuttgart.netsurf.de [194.233.216.182]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id NAA28636 for ; Sat, 5 Apr 1997 13:36:19 -0800 (PST) Received: from jocki (jocki [10.0.0.2]) by shire.domestic (8.8.5/8.8.5) with ESMTP id AAA01054; Sat, 5 Apr 1997 00:44:40 +0200 (MET DST) Message-Id: <199704042244.AAA01054@shire.domestic> From: "Jochim Kuebart" To: , Subject: Re: getting stdin in more Date: Sat, 5 Apr 1997 00:37:51 +0200 X-MSMail-Priority: Normal X-Priority: 3 X-Mailer: Microsoft Internet Mail 4.70.1155 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Well, This is due to piping: when more gets it input from a pipe, it displays it right away without waiting fo rthe end of file. This is very useful when |more'ing output of a program that takes long to run and has a line-by-line-output, because you can see the output before the program is finished. But it also creates the problem that more doesnt know the length of the file it's getting piped and thus can't show a percentage. When you press p (the key to display percentage info) more says "Don't know length of file" - which can't be helped. With less, you can scroll to the end of the file, then set the prompt style to medium and you will have percentage info. Thus, sometimes less can be more :-) (It's old, I know, but I like it) c u Jo ----------------------------------------------------------------------- FreeBSD Top breeders recommend it Joachim Kuebart ---------- > Von: put your name here > An: freebsd-questions@FreeBSD.ORG > Betreff: getting stdin in more > Datum: Freitag, 4. April 1997 17:09 > > I was wondering if I just do a more on a file everthing looks fine to > me, but if I do a grep on a file and | the output to more or if I am > looking at a man page I get an STDIN line at the bottom of the page > instead of the file name and a percentage. How can I get the file name > and percentage at the bottom of my man pages and piped output. I have > setenv PAGER more in my .login file and I get this useing FreeBSD > 2.1.6, 2.1.7, and 2.2.1 possibly others these are just the ones I use. > > thanks, > Chad >