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
- Urlencode string in bash
- How to check if a string starts with a specific value
- How to check if a command exists
- Output bold text in console
- Output italic text in console
- How to check if variable is empty
- How to get date in "YYYY-MM-DD" format
- How to search and replace string in variable
- Change permissions using chmod in bash
See more codes...