Uppercase In Bash
April 25, 2019
If your bash version is greater than 4.0, you can use the ^^ syntax to uppercase variable values:
export LOWER="abc" export UPPER=${LOWER^^} echo $UPPER
Adventures in software
April 25, 2019
If your bash version is greater than 4.0, you can use the ^^ syntax to uppercase variable values:
export LOWER="abc" export UPPER=${LOWER^^} echo $UPPER
I'm Tim Sawyer. I'm a software architect. I usually end up writing software in my spare time too, though I can also be found playing percussion and taking photos.
This blog is my notebook, where I can record how something was done. If someone else finds this content enlightening then so much the better.
Everything on here is my own view and reflects no one I have, do or will work for.
(c) 2009-2024 . Based on a design by nodethirtythree + Free CSS Templates