grep device name and look for next value :

view story

http://unix.stackexchange.com – I have this output from a find command: abc,,def,,geh, where abc,def and geh are device names and could be of any length and others are IP address belong to devices. Likeabc, for device abc. IP shall be next to comma delimiter. How can I use sed, grep or awk to print the associated IP when I grep for a device name? In short I want the IP to be displayed next to device name. (HowTos)