bashHow to convert string to uppercase
str="some lower text"
echo "$str" | tr '[:lower:]' '[:upper:]'ctrl + c$strstring we're going to convert to uppercase |
More of Bash
- How to extract file extension
- How to get time in "YYYY-MM-DD HH:II:SS" (year-month-date hour:minute:second) format
- How to get date in "YYYY-MM-DD" format
- Check if file exists
- How to count all lines in all files recursively
- Output bold text in console
- Binet's Formula in bash
- Urlencode string in bash
- How to check if variable is empty
- Output italic text in console
See more codes...