probe -u (l hd1,msdos1 ) --set=loopuuid set UUID=$loopuuid
On 26 April 2017 at 21:59, Nicole <[email protected]> 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 > [email protected] > https://lists.gnu.org/mailman/listinfo/help-grub > _______________________________________________ Help-grub mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-grub
