← All Exercises

String Manipulation Patterns

basicbash~10min

Background

Parameter expansion provides powerful string manipulation without external commands.

Problem

Extract substrings, replace text, and convert case using bash parameter expansion.

Input

A string variable

Output

Transformed string

Sample tests

Sample 1

Input: str="Hello World"
Expected: various transformations

Your solution

Learning objective

Learn bash string operations and parameter expansion