On Thu, Feb 23, 2012 at 06:24:29PM -0500, Penguin Lover Harry Putnam squawked:
> > On Thu, Feb 23, 2012 at 08:42:00PM +0000, 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 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
>
> And then say less -F test
>
> I do not get to see the one line. I don't think that's what Alan
> was looking for is it?
That is not supposed to happen. Is that in a X terminal or on the text
console?
If you `less test` and quit, does the content of the test file stay on
screen or does it get cleared (I bet the former)? Try `less -XF test`
in that case, and see if it helps.
W
--
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire
et vice versa ~~~ I. Newton