Kevin Monceaux <ke...@rawfeddogs.net> writes: > 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?