DrSchool Learn coding, fast.
EN AR BN CS DE EL Search

Strings — Example 34

Quick explanation + ready code for: Strings.

Shell Strings Back to examples
Back to language
Syntax: Strings in Shell. ID: #34

Code

s="lesson-23"
echo "${s^^}"

Notes

You can copy this snippet and adapt it. For advanced, add real-world inputs, edge cases, and tests.