📜  大写第一个 str bash - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:29.735000             🧑  作者: Mango

代码示例1
foo="bar"
echo "$(tr '[:lower:]' '[:upper:]' <<< ${foo:0:1})${foo:1}"
#returns 'Bar'