I am using locate
command.
I want to find all files that end with specific extension and have specific keyword in their name.
For example I want to find image such as this:
myImageFromSummer.jpg
I want to search by keyword "Summer" and extension ".jpg".
How would command look like for this task?
Best Answer
The
-b
option tellslocate
to only match the file name and*
in the pattern match any number of characters.