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
- Quickly create big file
- How to extract file name
- How to assign an output of a command to a variable
- Urlencode string in bash
- Binet's Formula in bash
- How to check if a command exists
- Check if directory exists
- How to check if variable is set or unset
See more codes...