Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我用 less 来做日志分析,
在我搜索一些字符串后,有很多匹配项,
然后我使用 n 或 N 遍历匹配的行,但有时我想去第一个匹配的行或最后一个匹配的行,怎么去那里?
我在谷歌搜索,但似乎没有这样的问题的答案,可以这样做吗?
g将带您到第一行,然后n将带您到第一场比赛,同时使用大写(first Gthen N)将带到最后一场比赛
g
n
G
N