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 check if a command exists
- How to get time in "HH:II:SS" (hour:minute:second) format
- Output bold text in console
- Binet's Formula in bash
- 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
- Change file owner in bash
- How to escape single quote in a single-quoted string
- Urlencode string in bash
- Change directory permissions recursively using chmod in bash
See more codes...