grub-devel
[Top][All Lists]
Advanced

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

How to use grub regex?


From: Mat Troi
Subject: How to use grub regex?
Date: Fri, 16 Sep 2016 15:53:38 -0700

Hi,

I want to find out if a string contain certain word in grub.  I am thinking about using grub regex.

Problem:
set string = (hd0,gpt1)/blah/blah
I want to find if cd is in string, how do I do that?


I tried "regex --set=foo 'cd' $string
echo $foo

There isn't anything in foo, so I guess my regex is not correct.

Thanks,
MT

reply via email to

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