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
- Binet's Formula in bash
- How to check if a string starts with a specific value
- How to check if a command exists
- How to assign an output of a command to a variable
- How to extract file extension
- How to extract file name
- Quickly create big file
- Urlencode string in bash
- How to convert string to lowercase
- Check if directory exists
See more codes...