Linux search for file name with multiple paramter

42 views Asked by At

Imagine the below database that has thousands of files. I want to search for a file name that has the letter D. and 0329. I tried this but it searches all directory not current one and search does not work together.

find . -name "*D.*" | find . -name "*0329*"

File Names

A.20180329
A.20180327
B.20180329
B.20180321
C.20180321
D.20180329
D.20180329
D.20180327
D.20180321
E.20180321
E.20180321
1

There are 1 answers

0
Vignesh Ramsubbose On

Below command should work if its linux.

ls -lRt *|grep D|grep 0329