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?
Asked
Active
Viewed 1.5k times
7

Gilles 'SO- stop being evil'
- 829,060

feetwet
- 187
1 Answers
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
less
search is regex sox 1..
– jordanm Apr 06 '15 at 15:30