convert capital letters to lowercase in shell script

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'

3.83
6

                                    x=&quot;HELLO&quot;
echo $x  # HELLO

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

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

3.83 (6 Votes)
0
4.5
4
M_a_s 100 points

                                    # Basic syntax:
tolower(string)
toupper(string)

# Example usage:
awk '{print tolower($0)}' input_file
# This prints every row ($0) converted to lowercase

awk '{print toupper($3)}' input_file
# This would print the third field ($3) converted to uppercase

4.5 (4 Votes)
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
convert uppercase to lowercase in bash bash script convert to lowercase bash convert capital char to small shell script to uppercase to lowercase in shell script how to convert lower case to upper case via bash shell scripting string lowercase bash string lowercase convert string to lowercase bash bash uppercase a variable bash shell script to count uppercase and lowercase letters linux capital lowercase bash uppercase or lowercase variables string ignore upper lower case bash turn to caps bash bash script make variable uppercase bash script convert to uppercase bash lowercase to uppercase bash echo convert uppercase shell script convert string to lowercase Convert string to lowercase using bash bash string to uppercase uppercase to lowercase file shell script bash command to convert to uppercase bash tr upper to lower bash to uppercase bash make string lowercase bash script to uppercase bash script to upperca UPPER TO LOWER CASE SHELL how to uppercase in bash shell script convert string case lower convert string from uppercase to lowercase in shell script tr upper lower bash bash variable uppercase convert to lowerercase in shell script convert lowercase to uppercase in shell script bash to lowercase convert a string to upper case using bash programming bash uppercase convert lowercase to uppercase file names in shell script bash upper case bash variable to uppercase bash convert string to lowercase bash make uppercase bash convert to uppercase convert capital letters to lowercase in shell script bash string to lowercase Lower case and upper case comparison bash to uppercase bash lower and upper case bash ^ lower and upper case bash bash uppercase sentence bash to upper case shell bash to uppercase bash uppercase string bash convert to lowercase shell lowercase string bash change case of variable bash script lowercase string linux lower case string bash uppercase to lowercase skrupt to lowercase bash lowercase all string bash lowercase string bash capitalize linux lowercase script bash change case of string to lowercase shell script bash to lower case bsh to uppercase bash lower case shell script to lowercase bash uppercase strings to llowercase convert from lower to uppercase in shell make string uppercase or lowercase in bash convert to uppercase in c bash uppercase commands to lowercase linu shell to lowercase change string case bash bash lowercase all letters linux tolowercase bash convert string to uppercase make a word uppercase bash uppercase to lowercase bash linux convert upper case to lower case linux make input lower case bash change variable to lowercase uppercase a string linux bash uppercase word lowercase bash bash lowercase variable bash do-lowercase-version convert to uppercase command bash change case linux string lowercase string to lower case in shell script tolower in shell script convert to lowercase in shell script shell script string to lowercase case change in bash bash word to uppercase bash convert lower to uppercase bash transform uppercase to lowercase bash how to convert text to lowercase or uppercase
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source