Tengo un archivo de registro que puedo usar less
en el archivo donde sé cómo ir al final del archivo de registro con un shift+ Gy luego usarlo ?
para consultar en el archivo de texto.
Lo que no sé cómo hacer es cuando voy al final del archivo de registro y encuentro mi primer error o lo que alguna vez busqué para ?
llegar al siguiente. De abajo hacia arriba, espero subir y subir en cada error en el archivo de registro.
Respuesta1
La respuesta está en el manual.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.