Suppose I have a string in my variable as follows.
I can get the root of this variable (remove extension .*) as follows
I can get the tail of this variable (removing the path */) as follows
But now I have to remove both the path and the extension. I can do it in two step using another variable as follows.
But the single step option (similar to zsh syntax below) shows an error message "bad substitution" in bash.
It would be useful if I get a single step comprehensible option to reduce the code length and avoid additional environment variable.