How to extract substring in Bash

How to extract substring in Bash
I have a bash shell variable called u="this is a test". How can I extract the “test” string and store into a shell variable?

Halal Vitamins

Powered by WPeMatico

Leave a Reply

Your email address will not be published. Required fields are marked *