Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there an automatic way (through command line params for example) of keep searching from start of text when the end is reached?

(same as Notepad++ - Continue Search from top but with less linux command instead of Notepad++)

share|improve this question

1 Answer 1

up vote 1 down vote accepted

I don't believe there is a way to do this automatically, but if you're doing incremental searches with just the single keystroke

n

anyway, then when you get to the end of the file just press

g

to go back to the top and continue searching incrementally with

n
share|improve this answer
    
Thats what I'm doing, but I was looking for an automatic way –  Pau Fracés Sep 6 '13 at 13:32
    
According to man page, there isn't one. All you have is \ and ? and nand N –  Kwaio Sep 6 '13 at 13:43

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.