If I run this:
echo "After-u-math-how-however" | cut -f1,2 -d'-'
I get After-u
I want to set the output to a variable. But when I try to do this:
myVar=echo "After-u-math-how-however" | cut -f1,2 -d'-'
It fails with:
bash: After-u-math-how-however: command not found
I am not sure how to fix this.