使用ack,如何一次显示一页? [英] Using ack, how do you display one page at a time?

查看:125
本文介绍了使用ack,如何一次显示一页?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用ack并将结果一次显示在一页上。

I would like to use ack and have the results shown one page at a time.

我已经尝试将其传送到| more,但这将删除颜色格式。我想保持颜色不变。

I've already tried to pipe it to |more, but this removes the color formatting. I would like to keep the colors intact.

推荐答案

如果阅读ack的手册页,您会看到有一个选择-pager 来满足您的需求。例如:

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,如何一次显示一页?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆