[gentoo-user] Re: dog - man's best friend.

2012-02-25 Thread Harry Putnam
Paul Hartman writes: [...] >>> (c) use less -F and less will automatically exit if the entire file can fit >>> on one screen.  One can export LESS='-F' to have less always do the above. >> >> Maybe I'm seeing behavior that is not supposed to happen, but if I say >> echo '## ONE LINE' > test >> >

[gentoo-user] Re: dog - man's best friend.

2012-02-25 Thread Harry Putnam
Willie WY Wong writes: > On Thu, Feb 23, 2012 at 06:24:29PM -0500, Penguin Lover Harry Putnam squawked: >> > On Thu, Feb 23, 2012 at 08:42:00PM +, Alan Mackenzie wrote: >> > >> >> (a) using less, and have it take just 10 screen lines; (b) using cat etc., >> >> and have the interesting part

Re: [gentoo-user] Re: dog - man's best friend.

2012-02-23 Thread Paul Hartman
On Thu, Feb 23, 2012 at 5:24 PM, Harry Putnam wrote: > Kevin Monceaux writes: > >> On Thu, Feb 23, 2012 at 08:42:00PM +, Alan Mackenzie wrote: >> >>> (a) using less, and have it take just 10 screen lines; (b) using cat etc., >>> and have the interesting part scroll away. >> >> (c) use less -F

Re: [gentoo-user] Re: dog - man's best friend.

2012-02-23 Thread Willie WY Wong
On Thu, Feb 23, 2012 at 06:24:29PM -0500, Penguin Lover Harry Putnam squawked: > > On Thu, Feb 23, 2012 at 08:42:00PM +, Alan Mackenzie wrote: > > > >> (a) using less, and have it take just 10 screen lines; (b) using cat etc., > >> and have the interesting part scroll away. > > > > (c) use l

[gentoo-user] Re: dog - man's best friend.

2012-02-23 Thread Harry Putnam
Kevin Monceaux writes: > On Thu, Feb 23, 2012 at 08:42:00PM +, Alan Mackenzie wrote: > >> (a) using less, and have it take just 10 screen lines; (b) using cat etc., >> and have the interesting part scroll away. > > (c) use less -F and less will automatically exit if the entire file can fit

[gentoo-user] Re: dog - man's best friend.

2012-02-23 Thread Nikos Chantziaras
On 23/02/12 22:42, Alan Mackenzie wrote: I've set the threshold between the two cases at 60 lines. If your screen is a different size, change the two obvious bits. You can use the $LINES env variable to get the height of the current terminal. Another way to get them is with the "tput" comman