If I can do this in my bash shell:
$ STRING="A String"
$ echo ${STRING^^}
A STRING
How can I change my command line argument to upper case?
I tried:
GUARD=${1^^}
This line produces Bad substitution error for that line.
If I can do this in my bash shell:
How can I change my command line argument to upper case? I tried:
This line produces Bad substitution error for that line. |
||||
|
Let's start with this test script:
This works:
This does not work:
This is because, on my system, like most debian-like systems, the default shell, The default shell on debian-like systems is |
|||||
|
|
||||
|
With Script:
Check:
|
|||
|