Is it possible to enable "wrap around" in less for the search? This means: If the last occurrence of a pattern has been found, pressing n
will start the search again at the beginning of the file (so you do not have to press g
and then n
).
Search in less with wrap-around at EOF
less
Best Answer
Probably not: the manual page for
less
does not mention wrapping, and the description of the search feature does not hint it is possible.