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
You can use sed:
$ echo 'james,adam,john' | sed 's/\<./\u&/g'
James,Adam,John
\<. will match first char of every word\u& to make it uppercase.There are endless possibilities, but look up tr and shell string substitution (if your shell supports it). Then there's GNU sed, awk, perl and many other languages ...
Using bash:
A="james adam john"
B=( $A )
echo "${B[@]^}"
Output is:
James Adam John