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

_______________________________________________
Help-grub mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-grub

Reply via email to