When looking at the content of files, I'd like to automatically
cat short files but
less those that exceed the screen size. I could use something with
wc -l, but is there a better way that maybe also considers the window size / current amount of lines available?
To give you the formula which involves the
There is a
Maybe 'less -F file_to_read' is the option : it exits less if the window is sufficient to display all the file, and wait on the pager if it is not the case