aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/readjusting.xml
diff options
context:
space:
mode:
authorZack Winkles <winkie@linuxfromscratch.org>2004-06-07 19:16:21 +0000
committerZack Winkles <winkie@linuxfromscratch.org>2004-06-07 19:16:21 +0000
commit2ec4b60f359413c6f0163b9e72108c24460573e7 (patch)
tree7f8fadd44d9a25a95ce26daf9748a7f0040715ae /chapter06/readjusting.xml
parent9109cd46dd8cbe0798713282e4908aeb98910a41 (diff)
Normalized usage of sed throughout the book
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3762 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/readjusting.xml')
-rw-r--r--chapter06/readjusting.xml7
1 files changed, 2 insertions, 5 deletions
diff --git a/chapter06/readjusting.xml b/chapter06/readjusting.xml
index c8c2f4bbd..a81c540f6 100644
--- a/chapter06/readjusting.xml
+++ b/chapter06/readjusting.xml
@@ -52,11 +52,8 @@ this:</para>
<!-- Ampersands are needed to allow cut and paste -->
-<screen><userinput>SPECFILE=`gcc --print-file specs` &amp;&amp;
-sed -e 's@ /tools/lib/ld-linux.so.2@ /lib/ld-linux.so.2@g' \
- $SPECFILE &gt; newspecfile &amp;&amp;
-mv -f newspecfile $SPECFILE &amp;&amp;
-unset SPECFILE</userinput></screen>
+<screen><userinput>sed -i 's@ /tools/lib/ld-linux.so.2@ /lib/ld-linux.so.2@g' \
+ `gcc --print-file specs`</userinput></screen>
<para>Again, cutting and pasting the above is recommended. And just like
before, it is a good idea to visually inspect the specs file to verify the