Abu Sayed
Musician | Singer | Lyricist | Composer | Music Producer | Web | Game | XR & Blockchain Developer
Tag Archives: UPPERCASE
The right way to make variable values UPPERCASE or lowercase in Bash

When we have to remodel some Bash variable worth into, for instance, uppercase, we regularly use some pipelines just like the followings: foo=”foo” foo=$(echo ${foo} | tr a-z A-Z) Enter fullscreen modeExit fullscreen mode or utilizing AWK: foo=$(echo ${foo} | awk ‘{print toupper($0)}’) Enter fullscreen modeExit fullscreen mode or with Perl: foo=$(echo ${foo} | perl…