I am trying to strip the string value in the variable and copy to another variable using bash parameter expansion.
initialModified=${initial#abc}
This give me the value in initialModified after stripping out abc from the beginning of the string in initial variable when I echo initialModified.
However, along with this I would like to add required check
initialModified=${initial#abc:?Required parameter}
This doesn't work as expected. And throws an error. Any help is appreciated.