I have something like this in bash on Linux:
some_variable= ls *somepattern* | xargs cat | wc -c
And i would like to multiply that by some amount like:
another_variable = $(($some_variable * 10))
But i get an error
-bash: * 100: syntax error: operand expected (error token is "* 100")
-bash: * 100: syntax error: operand expected (error token is "* 100")
Why is it not possible to not multiply some_variablesome_variable with wcwc?