Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

${a,}: 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
Comment

PREVIOUS NEXT
Code Example
Shell :: export import all vscode extensions 
Shell :: powershell get all file extensions in directory 
Shell :: dual boot kali linux isnt showing 
Shell :: install docker fedora 
Shell :: git bad object refs/heads/ 
Shell :: How to install LAMP in Ubuntu 18.04? 
Shell :: git reset back to previous pushed commit 
Shell :: linux tar command 
Shell :: docker save in windows 
Shell :: search by commit message 
Shell :: convert master to main 
Shell :: Kali free ports in use 
Shell :: bash list processes mac 
Shell :: install jupyter notebook 
Shell :: check library installed in google colab 
Shell :: ubuntu large text 
Shell :: find command 
Shell :: 7zip cmd 
Shell :: To stop all running docker containers 
Shell :: add arabic keyboard ubuntu 20.04 
Shell :: install golang ubuntu 
Shell :: windows where are pip packages installed 
Shell :: ubuntu cant find packages terminal 
Shell :: ext-dom missing ubuntu 
Shell :: push code to git 
Shell :: hardhat deploy 
Shell :: ubuntu reset path 
Shell :: wget download list of urls 
Shell :: how to stop tomcat server in macos 
Shell :: leap year program in shell 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =