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
- Urlencode string in bash
- How to convert string to lowercase
- How to check if a string starts with a specific value
- How to extract file extension
- Output italic text in console
- Output bold text in console
- How to check if a command exists
- How to search and replace string in variable
- Binet's Formula in bash
See more codes...