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
Using bash:
A="james adam john" B=( $A ) echo "${B[@]^}"
Output is:
James Adam John