I have tried assigning my bash variable and it works fine when i echo it. But as soon as i use the variable to assign another variable, it gives an error, that the command not exists.
dbFileName=hello123.mv.*
dbFile=$($dbFileName | sed -e 's|'.mv.*'|''|')
echo "$dbFile"
I want to alter the string stored in one variable and remove mv.* from the end.
This gives out the error that "hello123.mv.* : Command not found"