Languages
[Edit]
EN

Bash - text to lower case

0 points
Created by:
Root-ssh
121330

I  this short article, we would like to show how to convert text to lower case in Bash.

Quick solution:

echo "Hi! My name is John." | tr '[:upper:]' '[:lower:]'
echo "Hi! My name is John." | awk '{print tolower($0)}'
echo "Hi! My name is John." | sed -e 's/\(.*\)/\L\1/'

Example output:

hi! my name is john.

See also

  1. Bash - text to upper case 

Bash

Bash - text to lower case
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join