I would like to use ack and have the results shown one page at a time.
I've already tried to pipe it to |more, but this removes the color formatting. I would like to keep the colors intact.
I would like to use ack and have the results shown one page at a time.
I've already tried to pipe it to |more, but this removes the color formatting. I would like to keep the colors intact.
Add
--color
to your call to ack.if you read man page of ack, you will see there is an option
--pager
for your needs. for example: