How to capture the return code of the Beeline command that I am executing within a Shell Script. Like Below:
beeline -u $Beeline -e "ALTER TABLE DROP if exists partition (date='');"
I want to capture the status of above query with in shell script.
Thanks AG