[TUHS] pre-more pager?

Arthur Krewat krewat at kilonet.net
Thu Nov 9 08:47:12 AEST 2017


On 11/8/2017 5:43 PM, Dave Horsfall wrote:
>
>> cat filename | head -20 # get the first page.
>> cat filename | head -40 | tail -20 # get the second page.
>
> Arrgghh!!  Unnecessary use of a cat pipe!
>

cat added for clarity. Ok, not. I'm just dumb.

head -20 < filename
head -40 < filename | tail -20

Better? ;)



More information about the TUHS mailing list