Bash has ability of simple string manipulation. It has a various operators which allow do some basic text operations. This short article shows how to use these features in action with Bash.
Let’s say we have a variable text:
$ text="This is a sample text."