How to insert a char in every two?

Hi,

I've written a script to interrogate all fibre devices on our systems and output the WWNs to a file. I now want to insert a ":" every 2 characters into the WWN so I can write another script to create aliases within the SAN.

So the current file has WWNs in the following format;
10000000C988CBE0

And I need them to look like;
10:00:00:00:C9:88:CB:E0

I'm head scratching so all help appreciated.

echo '10000000C988CBE0' | sed 's/../&:/g;s/:$//'

brilliant, that got it.

many thanks vgersh99