Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash lowercase

Just use tr command to transform lowercase letters into uppercase as:
tr a-z A-Z < file.txt	#transforms letters into uppercase in a file
echo 'HELLO' | tr A-Z a-z	#Outputs: 'hello'
Comment

bash variable lowercase

# In Bash 4.0
a=DHCP
echo "${a,,}"
# Output:
dhcp
Comment

Bash - Convert a string from uppercase to lowercase

$ echo "$a" | tr '[:upper:]' '[:lower:]'
hi all
Comment

PREVIOUS NEXT
Code Example
Shell :: arch linux fonts 
Shell :: change date linux 
Shell :: C:UsersMY PCAppDataRoaming pm/node_modules/node/bin/node: line 1: This: command not found 
Shell :: how to kill vscode linux 
Shell :: install scrcpy linux 
Shell :: how to enable migration in package manager console 
Shell :: get current commit message git 
Shell :: proc folder 
Shell :: install aws cli mac 
Shell :: install spotify ubuntu 
Shell :: adb shell error: more than one device/emulator 
Shell :: npm audit 
Shell :: command wait bash 
Shell :: What should you run to modify your last commit? 
Shell :: remove all games ubuntu 
Shell :: how to remove every space in a string in bash 
Shell :: Cache Your Login Credentials 
Shell :: update linux command 
Shell :: launch powershell code runner 
Shell :: boot repair linux 
Shell :: remove unused images docker manually 
Shell :: install neovim ubuntu 
Shell :: how to exit telnet linux 
Shell :: kill port from terminal on mac 
Shell :: git reset remote origin 
Shell :: dynamodb local how to delete table 
Shell :: install nodejs on ubuntu 
Shell :: httpd.conf location centos 
Shell :: wget as file name 
Shell :: install openvpn client ubuntu 
ADD CONTENT
Topic
Content
Source link
Name
7+5 =