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.
if you read man page of ack, you will see there is an option --pager
for your needs. for example:
ack --color --pager=more ....
在你的ack调用中添加--color
。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.