0

i am using less to do a log analysis,

after i search for some string, there are a lot of match,

and then i use n or N to go through the matched lines, but sometimes i want to go the the first matched line or the last matched line, how to go there ?

enter image description here i searched in google, but seems there is no answer for such a question, is it possible to do that ?

seven-phases-max
  • 11,765
  • 1
  • 45
  • 57
tonyibm
  • 581
  • 2
  • 8
  • 24

1 Answers1

1

g will bring you to the first line and then n will bring you to the first match, using both uppercase (first G then N) will bring to the last match

Stephan Wiehr
  • 166
  • 1
  • 7