List out the required files from an Unix directory -


i have files in unix directory 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 list out files have both "xmp" , "b" in name.

i tried ls -ltr xmp* *b* displays 'xmp' 'b' results.

is there way list files has xmp , b in it's name? in advance.

the space causing headaches. have right asking ls 2 different sets of files; xmp* and *b* in current directory. want is:

ls -ltr xmp*b* 

no space.


Comments