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
- How to check if a string starts with a specific value
- Urlencode string in bash
- How to check if variable is empty
- Output bold text in console
- Output italic text in console
- Check if directory exists
- How to iterate through an array of strings
- Check if a string contains a substring
- How to search and replace string in variable
See more codes...