Horje
bash uppercase bad substitution Code Example
bash uppercase bad substitution
var=hello #For Bash Version higher than 4.3.33 try these
echo ${var''} #Uppercase whole string
HELLO
echo ${var'} #Uppercase only first char of string
Hello
var2=BYE
echo ${var2,} #Lowercase whole string
bye
echo ${var2,,} #Lowercase only first char of string
bYE
echo $var | tr 'a-z' 'A-Z' #For lower versions of Bash just use tr command
HELLO




Shell

Related
git bypass hook Code Example git bypass hook Code Example
check nvidia driver version linux Code Example check nvidia driver version linux Code Example
sqlite3 attempt to write a readonly database Code Example sqlite3 attempt to write a readonly database Code Example
check version gpu Code Example check version gpu Code Example
get nvidia driver version Code Example get nvidia driver version Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
13