I have a value stored in a variable like
input="###key1,value1###key2,value2###key3,value3###"
I wanted to have output like
key1 has value1 values
key2 has value2 values
key3 has value3 values
Could anybody help me out how to achieve it using loops in bash scripting?
Thanks,:)
and one more doubt, what if the
input="###key1, value1###key2, value2###key3,value3###
that is with whitespace in front of values? How to trim that?