7

I'm using less to view a large file and I want to search for a pattern with wildcards — e.g., " x 1??" where ? is any character. Does less support that, and if so how would I do that interactively?

feetwet
  • 187

1 Answers1

11

The search in less uses regular expressions. To accomplish the search you are looking for, simply replace the shell wildcard ? with ..

/x 1..
jordanm
  • 42,678