Capitalize First Letter

Capitalize the first letter of a string while keeping the rest unchanged.

Code

General
echo "${str^}"

Parameters

The string to capitalize

Server

More Bash Snippets