Index: chapter01/changelog.xml
===================================================================
--- chapter01/changelog.xml	(revision 9109cd46dd8cbe0798713282e4908aeb98910a41)
+++ chapter01/changelog.xml	(revision 2ec4b60f359413c6f0163b9e72108c24460573e7)
@@ -105,4 +105,7 @@
 </listitem>
 
+<listitem><para>June 7, 2004 [winkie]: Normalized <quote>sed</quote> usage
+throughout the book.</para></listitem>
+
 <listitem><para>June 7, 2004 [winkie]: Use the
 <quote>gcc --print-file specs</quote> command to determine the location of the
Index: chapter05/adjusting.xml
===================================================================
--- chapter05/adjusting.xml	(revision 9109cd46dd8cbe0798713282e4908aeb98910a41)
+++ chapter05/adjusting.xml	(revision 2ec4b60f359413c6f0163b9e72108c24460573e7)
@@ -41,5 +41,5 @@
 
 <screen><userinput>SPECFILE=`gcc --print-file specs` &amp;&amp;
-sed -e 's@ /lib/ld-linux.so.2@ /tools/lib/ld-linux.so.2@g' \
+sed 's@ /lib/ld-linux.so.2@ /tools/lib/ld-linux.so.2@g' \
     $SPECFILE &gt; tempspecfile &amp;&amp;
 mv -f tempspecfile $SPECFILE &amp;&amp;
Index: chapter05/udev.xml
===================================================================
--- chapter05/udev.xml	(revision 9109cd46dd8cbe0798713282e4908aeb98910a41)
+++ chapter05/udev.xml	(revision 2ec4b60f359413c6f0163b9e72108c24460573e7)
@@ -43,10 +43,10 @@
 running the following:</para>
 
-<screen><userinput>sed -i 's:\/sbin\/udev:/tools&amp;:' udevstart.c</userinput></screen>
+<screen><userinput>sed -i 's@/sbin/udev@/tools/sbin/udev@g' udevstart.c</userinput></screen>
 
 <para>Also assure that udev knows the correct location to look for its
 configuration files:</para>
 
-<screen><userinput>sed -i 's:\/etc:/tools&amp;:' etc/udev/udev.conf.in</userinput></screen>
+<screen><userinput>sed -i 's@/etc@/tools/etc@g' etc/udev/udev.conf.in</userinput></screen>
 
 <para>Now compile Udev:</para>
Index: chapter05/util-linux.xml
===================================================================
--- chapter05/util-linux.xml	(revision 9109cd46dd8cbe0798713282e4908aeb98910a41)
+++ chapter05/util-linux.xml	(revision 2ec4b60f359413c6f0163b9e72108c24460573e7)
@@ -37,5 +37,5 @@
 script:</para>
 
-<screen><userinput>sed -i "s@/usr/include@/tools/include@g" configure</userinput></screen>
+<screen><userinput>sed -i 's@/usr/include@/tools/include@g' configure</userinput></screen>
 
 <para>Prepare Util-linux for compilation:</para>
Index: chapter06/gzip.xml
===================================================================
--- chapter06/gzip.xml	(revision 9109cd46dd8cbe0798713282e4908aeb98910a41)
+++ chapter06/gzip.xml	(revision 2ec4b60f359413c6f0163b9e72108c24460573e7)
@@ -39,5 +39,5 @@
 location gets placed into the script:</para>
 
-<screen><userinput>sed -i 's%"BINDIR"%/bin%' gzexe.in</userinput></screen>
+<screen><userinput>sed -i 's@"BINDIR"@/bin@g' gzexe.in</userinput></screen>
 
 <para>Compile the package:</para>
Index: chapter06/man.xml
===================================================================
--- chapter06/man.xml	(revision 9109cd46dd8cbe0798713282e4908aeb98910a41)
+++ chapter06/man.xml	(revision 2ec4b60f359413c6f0163b9e72108c24460573e7)
@@ -41,5 +41,5 @@
 properly handled by Less:</para>
 
-<screen><userinput>sed -i 's/-is/&amp;R/' configure</userinput></screen>
+<screen><userinput>sed -i 's@-is@&amp;R@g' configure</userinput></screen>
 
 <para>The third is also a sed substitution to comment out the <quote>MANPATH
@@ -47,5 +47,5 @@
 redundant results when using programs such as <command>whatis</command>:</para>
 
-<screen><userinput>sed -i 's%MANPATH./usr/man%#&amp;%' src/man.conf.in</userinput></screen>
+<screen><userinput>sed -i 's@MANPATH./usr/man@#&amp;@g' src/man.conf.in</userinput></screen>
  
 <para>Now prepare Man for compilation:</para>
Index: chapter06/readjusting.xml
===================================================================
--- chapter06/readjusting.xml	(revision 9109cd46dd8cbe0798713282e4908aeb98910a41)
+++ chapter06/readjusting.xml	(revision 2ec4b60f359413c6f0163b9e72108c24460573e7)
@@ -53,9 +53,6 @@
 <!-- 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
Index: chapter06/shadow.xml
===================================================================
--- chapter06/shadow.xml	(revision 9109cd46dd8cbe0798713282e4908aeb98910a41)
+++ chapter06/shadow.xml	(revision 2ec4b60f359413c6f0163b9e72108c24460573e7)
@@ -67,7 +67,7 @@
 and type it all in):</para>
 
-<screen><userinput>sed -e 's%#MD5_CRYPT_ENAB.no%MD5_CRYPT_ENAB yes%' \
-    -e 's%/var/spool/mail%/var/mail%' \
-    etc/login.defs.linux &gt; /etc/login.defs</userinput></screen>
+<screen><userinput>cp etc/login.defs.linux /etc/login.defs
+sed -i -e 's@#MD5_CRYPT_ENAB.no@MD5_CRYPT_ENAB yes@' \
+    -e 's@/var/spool/mail@/var/mail@' /etc/login.defs</userinput></screen>
 
 <para>Move some misplaced symlinks/programs to their proper locations:</para>
Index: chapter06/sysvinit.xml
===================================================================
--- chapter06/sysvinit.xml	(revision 9109cd46dd8cbe0798713282e4908aeb98910a41)
+++ chapter06/sysvinit.xml	(revision 2ec4b60f359413c6f0163b9e72108c24460573e7)
@@ -37,7 +37,6 @@
 <quote>Sending processes started by init the TERM signal</quote> instead:</para>
 
-<screen><userinput>cp src/init.c{,.backup}
-sed 's/Sending processes/&amp; started by init/g' \
-    src/init.c.backup &gt; src/init.c</userinput></screen>
+<screen><userinput>sed -i 's@Sending processes@&amp; started by init@g' \
+    src/init.c</userinput></screen>
 
 <para>Compile Sysvinit:</para>
Index: chapter06/util-linux.xml
===================================================================
--- chapter06/util-linux.xml	(revision 9109cd46dd8cbe0798713282e4908aeb98910a41)
+++ chapter06/util-linux.xml	(revision 2ec4b60f359413c6f0163b9e72108c24460573e7)
@@ -36,7 +36,5 @@
 program FHS-compliant, run the following:</para>
 
-<screen><userinput>cp hwclock/hwclock.c{,.backup}
-sed 's%etc/adjtime%var/lib/hwclock/adjtime%' \
-    hwclock/hwclock.c.backup &gt; hwclock/hwclock.c
+<screen><userinput>sed -i 's@etc/adjtime@var/lib/hwclock/adjtime@g' hwclock/hwclock.c
 mkdir -p /var/lib/hwclock</userinput></screen>
 
