September 2018
Beginner
186 pages
4h 30m
English
You can have a variable expand into its value with all characters uppercase or lowercase using the "${myvar^^}" and "${myvar,,}" forms, respectively:
bash$ fn='mixedCase'
bash$ printf '%s\n' "${fn^^}"
MIXEDCASE
bash$ printf '%s\n' "${fn,,}"
mixedcase
Read now
Unlock full access