better sed command

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@926 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
Mark Hymers 2001-08-07 18:57:11 +00:00
parent ecdbe93749
commit 8cc93ffc54
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
<sect2>
<title>Command explanations</title>
<para><userinput>sed 's/\(.*\) (nflg || \(.*\)/\1\(\2/' useradd.c.temp
<para><userinput>sed 's/\(.*\) (nflg || \(.*\))\(.*\)/\1\2\3/' useradd.c.temp
&gt; src/useradd.c</userinput>: This sed is used to fix a compilation
bug which occurs due to a variable being used but not defined.</para>

View File

@ -5,7 +5,7 @@
following commands:</para>
<para><screen><userinput>mv src/useradd.c useradd.c.temp &amp;&amp;</userinput>
<userinput>sed 's/\(.*\) (nflg || \(.*\)/\1\(\2/' useradd.c.temp &gt; src/useradd.c &amp;&amp;</userinput>
<userinput>sed 's/\(.*\) (nflg || \(.*\))\(.*\)/\1\2\3/' useradd.c.temp &gt; src/useradd.c &amp;&amp;</userinput>
<userinput>./configure --prefix=/usr &amp;&amp;</userinput>
<userinput>make &amp;&amp;</userinput>
<userinput>make install &amp;&amp;</userinput>