Convert capital/uppercase to lowercase in Linux

 Create a input.txt file content with Caps letter

# Converts upper to lower case
sed -e 's/\(.*\)/\L\1/' input.txt > output.txt

# Converts lower to upper case
sed -e 's/\(.*\)/\U\1/' input.txt > output.txt

Share on Google Plus

About Penguin Technology

I am a passionate cloud and DevOps professional specializing in Linux and open-source solutions. Through this blog, I share my knowledge and experience with the community, offering tips and insights on cloud technologies and DevOps practices.
    Blogger Comment

1 comments:

  1. Thank you for the Blog.
    Learn Industrial Linux Training in Noida from Galaxy Cloud
    https://galaxycloud.in/linux-training.php

    ReplyDelete