Bash Basics Series #6 will show you how to perform common string operations.
https://itsfoss.com/bash-strings/
Bash Basics Series #6: Handling String Operations
In this chapter of the Bash Basics series, learn to perform various common string operations like extracting, replacing and deleting substrings.Abhishek Prakash (It's FOSS)