Date: Sat, 5 Apr 1997 00:37:51 +0200 From: "Jochim Kuebart" <joa@kuebart.stuttgart.netsurf.de> To: <dahc@CORENET.NET>, <freebsd-questions@freebsd.org> Subject: Re: getting stdin in more Message-ID: <199704042244.AAA01054@shire.domestic>
next in thread | raw e-mail | index | archive | help
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 <http://www.freebsd.org> Top breeders recommend it Joachim Kuebart <joa@delos.lf.net> <joa@stuttgart.netsurf.de> <joki@kuebart.stuttgart.netsurf.de> ---------- > Von: put your name here <dahc@CORENET.NET> > 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 >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199704042244.AAA01054>