bashHow to convert string to lowercase
str="Some UPPER text"
echo "$str" | tr '[:upper:]' '[:lower:]'
ctrl + c
$str string we're going to convert to lowercase |
More of Bash
- Binet's Formula in bash
- How to check if a string starts with a specific value
- How to assign an output of a command to a variable
- Quickly create big file
- How to extract file extension
- How to extract file name
- Urlencode string in bash
- How to check if variable is set or unset
- How to get time in "HH:II:SS" (hour:minute:second) format
- Check if a string contains a substring
See more codes...