There is no simple ‘tolower’ command on the bash, but you can convert uppercase characters to lowercase with a little shell script. The script uses the tr command internally for converting the chars.
Create a shell script with the name ‘tolower’ that converts all text that is given as a command-line argument to lower case:
nano /usr/local/bin/tolower
and enter the following content:
#!/bin/sh echo $1 | tr '[:upper:]' '[:lower:]'
Then make the script executable:
chmod +x /usr/local/bin/tolower
An test it by executing this command on the shell:
tolower "Thats a Test"
will convert the string to lowercase and show the result on the shell:
thats a test The post How to convert filenames or text to lowercase on the Linux command line appeared first on FAQforge.
In July 2025, git received CVE-2025-48384, a high vulnerability allowing arbitrary code execution when cloning…
Last year, we collaborated with two design student teams from Loughborough University in the UK.…
January 15, 2026 – Canonical, the publisher of Ubuntu and provider of open source security,…
How to install GitLab on Ubuntu 24.04 will be explained in this blog post with…
Do you know what was always there but has increased multiple times in the last…
The Digital Operational Resilience Act (DORA) came into force across the EU on January 17,…