I have data which are in "Key:value" form where keys are 901,902,903,904 and respective values are S,M,F,WAP`, with space as delimiter.
- Input example
901 S 902 M 903 F 904 WAP .....
I want to convert into key:value,key:value format.
- Desired output:
901:S,902:M,903:F,904:WAP .....
I tried using sed but I was only able to add asingle delimiter.
sed, or are other standard tools an option, too?