Your script is contacted lessusing a pipe . A pipe is a stream of bytes in memory that connects two endpoints: your script program and a lessformer write to it, the last of which is read.
, , . , , (, ) . 64k Linux. , script , . , script , - write().
? - ; , , , ( ) . less . , .
, , (, G), (, G). , :
./script | less +Gg
, , , script , . less . ( , ./script ), :
./script >x & less x ; rm x