Here i m using bash 4 4 19 provide a built in way for uppercasing and lowercasing strings.
Bash bad substitution string.
The overflow blog tips to stay focused and finish your hobby project.
Also given the script.
If your shell is a sufficiently recent version of bash that parameter expansionnotation should work.
Bash bad substitution when converting string variables to uppercase or lowercase converting strings in your bash script from lowercase to uppercase or viceversa is a common requirement.
You are using bash shebang then you should be using bash to run your script instead of sh anubhava dec 2 13 at 9 29 add a comment your answer.