Can I tell less to read in a whole stream?

1

Related to this question: How can I get file information in 'less' like with 'man'?

Is there a way to ask less to suck in a whole stream to EOF (or at least to some size limit) so that, when it's being used to read from a pipe, it can still give location in the prompt as a percentage?

Joshua Goldberg

Posted 2011-03-24T17:18:40.630

Reputation: 286

Answers

1

Pass it +G1G so that it scrolls to the end (and loads the stream) and then scrolls back to the beginning.

Ignacio Vazquez-Abrams

Posted 2011-03-24T17:18:40.630

Reputation: 100 516