i'm trying to find out how to show files having a particular format. i.e.
files
o570345.out
o5703451.out
XX_570345_1.RTF
so when i search for files using
ls *570345*
it shows all three files but actually i don't like to see the second file o5703451.out because 5703451 is different from 570345. how do i go about this?
coz in first it will not show the desied result though those three file are a single line representation.
but the ls *${F}* is a three line representation of those three file before coming to grep.