replace multiple existence of : symbol with one

Infile

Outfile

sed 's/\([^:]*\):*\([^*]*\)/\1:\2/'

cat infile | tr -s ":" > outfile

awk 'BEGIN { FS=":*";OFS=":" } { print $1,$2 }