Case Transformation in Bash and POSIX with Examples

How to uppercase, lowercase, and capitalize

Shinichi Okada
mkdir Awesome
Published in
2 min readJul 22, 2021

--

Photo by Alexander Andrews on Unsplash

Bash

Use ^ to convert the first letter to uppercase and ^^ to convert all characters to uppercase.

Use , to convert the first letter to lowercase and ,, to convert all characters to lowercase.

--

--

Shinichi Okada
mkdir Awesome

A programmer and technology enthusiast with a passion for sharing my knowledge and experience. https://codewithshin.com