I have files in a unix directory as shown below
XMP.df.a.xml
XPL.dg.a.xml
XMP.sf.b.xml
XPL.ba.b.xml
XMP.ad.c.xml
XPL.lk.b.xml
I have to list out the files that have both "XMP" and "b" in its name.
I tried ls -ltr XMP* *b*
But it displays all the 'XMP' as well as 'b' results.
Is there a way to list only the files that has XMP and b in it's name? Thanks in advance.