Assign AWK result to variable [duplicate] Assign AWK result to variable [duplicate] postgresql postgresql