Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

env var linux to uppercase lowercase

If you are using bash 4 you can use the following approach:

x="HELLO"
echo $x  # HELLO

y=${x,,}
echo $y  # hello

z=${y^^}
echo $z  # HELLO
Comment

PREVIOUS NEXT
Code Example
Shell :: apt sources.list amd64 only 
Shell :: lhapüasd 
Shell :: pgdmp file 
Shell :: how to find factor in linux cmd 
Shell :: bash get length of every nth row 
Shell :: kali linux renew ip address 
Shell :: bitcoin miner for mac cli 
Shell :: trash folder linux 
Shell :: open file explorer from cmd linux 
Shell :: apache user linux 
Shell :: apt show package url 
Shell :: gh login 
Shell :: windows powershell ise run as administrator 
Shell :: Install GDAL on AWS EC2 ubuntu instance 
Shell :: powershell set environment variable 
Shell :: Login to Azure CLI using Service Principal 
Shell :: cannot install gcc on ubuntu 
Shell :: show wifi password linux 
Shell :: set hostname on command line ec2 
Shell :: restart wsl2 windows 
Shell :: ubuntu 20.04 install google cloud sdk 
Shell :: rejected master - master (non-fast-forward) 
Shell :: git remove directory from tracking 
Shell :: add github to windows credentials 
Shell :: change directory cmder 
Shell :: create git aliases 
Shell :: wsl folder linux windows access 
Shell :: stripe installation 
Shell :: push a local branch 
Shell :: bash iterate over list of files 
ADD CONTENT
Topic
Content
Source link
Name
5+7 =