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
Also in C++:
- how to pull git repository from github
- chromium for linux
- windows check ip address cmd
- unable to get local issuer certificate git
- how to download pip3 in kali linux
- windows launch from command line .lnk
- tic toc commands
- bash concatenate two columns
- git commit from terminal
- rails reset gemfile.lock
- how to invite someone to private github repo
- how to full update kali linux
- ubuntu 20.04 how to check dns server
- code ENOLOCALnpm ERR! Could not install from "android"
- install vlc rhel
- unix time command
- git change branch name
- git push to different remote branch
- "mailx" and "dead.letter" and "centos"
- Error: Fetching /usr/local/Homebrew/Library/Taps/commands/homebrew-pup failed!
- make only one digit input box
- how to execute a bash script in terminal
- how to use pip in linux
- ubuntu turn of sleep