help-grub
[Top][All Lists]
Advanced

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

Re: Assigning output of a command to a variable


From: Steve
Subject: Re: Assigning output of a command to a variable
Date: Wed, 26 Apr 2017 23:48:40 +0100

  probe -u (l
​hd1,msdos1
) --set=loopuuid
 set UUID=$loopuuid


On 26 April 2017 at 21:59, Nicole <address@hidden> wrote:

> 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
> address@hidden
> https://lists.gnu.org/mailman/listinfo/help-grub
>


reply via email to

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