help-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Assigning output of a command to a variable


From: Nicole
Subject: Assigning output of a command to a variable
Date: Wed, 26 Apr 2017 21:59:18 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.0

How can I get the output of a command into a variable? I cannot find anything about this in the manual.

In bash terms I'd like to this:

set uuid=$(probe -u (hd1,mdos1)
echo ${uuid}

The output from this should the uuid of the disk queried.

Thanks in advance



reply via email to

[Prev in Thread] Current Thread [Next in Thread]