I am trying to convert a Capital case word to camel case using shell script. e.g.
echo "project assignment" | sed 's/.*/\L&/; s/[a-z]*/\u&/g'
You can do this with gnu-sed:
s='ProjectAssignment' echo "$s" | sed 's/^[A-Z]/\L&/' projectAssignment
^[A-Z] will match only the first letter if it is uppercase.