I'm trying to do the following:
size=$(curl -sI "https://stackoverflow.com/posts/0/editor-heartbeat/ask" | grep -i Content-Length | awk '{print $2}')
echo $((size / 3))
But this returns the error:
")syntax error: invalid arithmetic operator (error token is "
I guess it has something to do with the result of awk.
Thank you in advance.