Ich habe eine Protokolldatei, auf die ich zugreifen kann. Ich weiß, wie ich mit einem + less
zum Ende der Protokolldatei gelange und sie dann zur Abfrage in der Textdatei verwende.shiftG?
Was ich nicht weiß, ist, wie ich zum nächsten Fehler komme, wenn ich zum Ende der Protokolldatei gehe und meinen ersten Fehler oder was auch immer ich suche, finde. ?
Von unten nach oben hoffe ich, bei jedem Fehler in der Protokolldatei immer weiter nach oben zu kommen.
Antwort1
Die Antwort steht im Handbuch.man less
:
n Repeat previous search, for N-th line containing the last
pattern. If the previous search was modified by ^N, the
search is made for the N-th line NOT containing the
pattern. If the previous search was modified by ^E, the
search continues in the next (or previous) file if not
satisfied in the current file. If the previous search was
modified by ^R, the search is done without using regular
expressions. There is no effect if the previous search
was modified by ^F or ^K.
N Repeat previous search, but in the reverse direction.