0

Using Linux I want to know how to go back to normal file view with less whenever I used the & <pattern> format in the less to search for only the lines with the pattern I am looking for.

I know that I can typeq or ^z BUT these terminate the less. However, I DO not want to quit the less and I just want to do see the only lines with pattern and then go back to previous less environment.

Any help is highly appreciated.

seven-phases-max
  • 11,765
  • 1
  • 45
  • 57
Daniel
  • 1,202
  • 2
  • 16
  • 25

1 Answers1

2

Just use & again with no pattern, i.e. enter & and hit return.

that other guy
  • 116,971
  • 11
  • 170
  • 194