Grep options

Hi Team,

I have a list of 12000 files and i am need to search for the names of the file which has long version numbers (say more than 5 decimals).. With the below instance

u~15.1.4.1.2.1.5.1.5.1.24.1.24.1.5
lk-l~22.1.3.1.9.1.7.1.24.1.23
YDFVALLN.CPY~1
YEUPCASE.CPY~1
YFPRSTID.CPY~1
dsjcdnjkl.txt~10.1.7.4.6.7
abcdef~4.1.2.4
I tried the command

cat version|grep "*~*.*.*.*.*"

With the above instance, the output should show me the two values

u~15.1.4.1.2.1.5.1.5.1.24.1.24.1.5
lk-l~22.1.3.1.9.1.7.1.24.1.23
dsjcdnjkl.txt~10.1.7.4.6.7

But it did not return any output.. I am sure that i am doing something wrong.. Can somebody help me on this..

Many thanks in advance..

Try:

sed -n '/[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*\./p' file

thanks jacob.. it works great..

Can i understand what "./p" at the end stands for..