less: continue search from top

2

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++)

Pau Fracés

Posted 2013-09-06T12:35:01.580

Reputation: 133

Answers

1

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

dg99

Posted 2013-09-06T12:35:01.580

Reputation: 525

Thats what I'm doing, but I was looking for an automatic way – Pau Fracés – 2013-09-06T13:32:45.043

1According to man page, there isn't one. All you have is \ and ? and nand N – mveroone – 2013-09-06T13:43:23.153