[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to use grub regex?
From: |
Andrei Borzenkov |
Subject: |
Re: How to use grub regex? |
Date: |
Sat, 17 Sep 2016 08:47:56 +0300 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 |
17.09.2016 01:53, Mat Troi пишет:
> 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.
>
You search for 'cd' and there is no occurrence of 'cd' in string; why do
you expect anything to be returned?