grub-devel
[Top][All Lists]
Advanced

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

Re: compiling with 2.95


From: Vincent Guffens
Subject: Re: compiling with 2.95
Date: Fri, 11 Mar 2005 10:40:56 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040913

[...]
so I have also replaced in gencmdlist.sh the following line:

#grep -v "^#" | sed -ne "/grub_register_command *( *\"/{s/.*(
*\"\([^\"]*\)\".*/\1: $module/;p}"
grep -v "^#" | grep -e "grub_register_command *( *\"" | sed -ne
"s/.*grub_register_command *( *\"\([^,\"]*\).*/\1: $module/;p"


Oh, really? This is a very standard sed expression, I think. Ummh... What should I do?


It looks like the problem comes from the braces in the expression, if I try a simple one like this:

$ cat test | sed -e "/grub_register/{s/register/test/;p}"
sed: -e expression #1, char 35: Extra characters after command

So I split the expression in two parts. From my understanding of it, the following is equivalent to the original sed expression:

grep -v "^#" | grep -e "grub_register_command *( *\"" | sed -ne "s/.*( *\"\([^\"]*\)\".*/\1: $module/;p"

which is not the same line than the one I sent in the previous mail (although they give the same command.lst)


--
                                Vincent Guffens
                                PhD Student UCL/CESAME
                                tel:   +32 10 47 80 30
Value your freedom, or you will lose it, teaches history.
"Don't bother us with politics," respond those who don't want to learn.
                -- Richard M. Stallman




reply via email to

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