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
>>
>
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
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
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
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
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
6 matches
Mail list logo