lfs/chapter06/procinfo-exp.xml
Mark Hymers 8f5efb6200 Bug 125: simplify seds
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@973 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2001-08-15 12:50:02 +00:00

13 lines
476 B
XML

<sect2>
<title>Command explanations</title>
<para><userinput>sed 's/-ltermcap/-lncurses/' Makefile | make -f -:</userinput>
This will replace -ltermcap with -lncurses in the Makefile and pipe the
output of sed (the modified Makefile) directly to the make program. This
is an alternate and more efficient way to direct the output to a file
and tell make to use that alternate file. We do this because libtermcap
is declared obsolete in favor of libncurses.</para>
</sect2>