SyntaxFix
Write A Post
Hire A Developer
Questions
You should declare metab as integer and then use arithmetic evaluation
declare -i metab num ... num+=metab ...
For more information see https://www.gnu.org/software/bash/manual/html_node/Shell-Arithmetic.html#Shell-Arithmetic