在 Linux 有时候批量处理结果必不可少,可能会面对要查看多个结果的时候。最常见的查看命令是 less,我猜测应该有这个功能。我打开多个文件后尝试用 p 和 n 翻页死活不行。。。
一查,原来前面要加冒号!
:n Examine the next file (from the list of files given in the com‐
mand line). If a number N is specified, the N-th next file is
examined.
:p Examine the previous file in the command line list. If a number
N is specified, the N-th previous file is examined.
最下方会显示所处第几个文件:
参考:
网友评论