bashHow to convert string to uppercase
str="some lower text"
echo "$str" | tr '[:lower:]' '[:upper:]'
ctrl + c
$str string we're going to convert to uppercase |
More of Bash
- How to check if a string starts with a specific value
- Urlencode string in bash
- Output bold text in console
- How to check if a command exists
- Output italic text in console
- How to check if variable is empty
- How to get date in "YYYY-MM-DD" format
- How to convert string to lowercase
- How to search and replace string in variable
See more codes...