I have value as:
james,adam,john
I am trying to make it James,Adam,John(First character of each name should be Uppercase)
According to kev(below),
$ echo ‘james,adam,john’ | sed ‘s/\<./\u&/g’
James,Adam,John(It is not working in all the systems)
I am not able to do the same thing in different system.I am using .ksh, but I don’t know whether its because of ksh or different system. Can anyone help?
Thanks
You can use
sed:\<.will match first char of every word\u&to make it uppercase.