एक और सीधा तरीका होगा: myvar=$(mysql mydatabase -u $user -p$password -se "SELECT a, b, c FROM table_a")