I need to enter some command value into a variable, I’ve tried with the following which doesn't work, what could be missing here?
OUTPUT=git describe --tags --abbrev=0 | awk -F. '{$NF+=1; OFS="."; print $0}'
echo "${OUTPUT}"
For this I got
OUTPUT="git describe --tags --abbrev=0 | awk -F. '{F+=1; OFS="."; print }'"
echo ""
even if I remove the quote it doesn't work...