📜  bash 将字符串转换为大写 - Shell-Bash 代码示例

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

代码示例2
# Basic syntax:
tolower(string)
toupper(string)

# Example usage:
awk '{print tolower($0)}' input_file
# This prints every row ($0) converted to lowercase

awk '{print toupper($3)}' input_file
# This would print the third field ($3) converted to uppercase