1) Connect the phone to PC in USB storage mode and get the data.img from the cwm backup
cp /media/clockworkmod/data.img .
2) compile and build unyaffs which is need to retrieve the files from data.img
download unyaffs.c, unyaffs.h from
http://code.google.com/p/unyaffs/downloads/list
wget http://unyaffs.googlecode.com/files/unyaffs.c
wget http://unyaffs.googlecode.com/files/unyaffs.h
gcc -o unyaffs unyaffs.c
unyaffs data.img
3) after extracting the image browse the contact database location
cd data/com.android.providers.contacts/databases
4) use sqlite3 command line client to read the table of contacts
sqlite3 contacts2.db
sqlite> select number,name from view_v1_phones;