[0590c1b6] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[0590c1b6] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[65fceed] | 7 | <!ENTITY ed-download-http "http://ftp.gnu.org/pub/gnu/ed/ed-&ed-version;.tar.gz">
|
---|
| 8 | <!ENTITY ed-download-ftp "ftp://ftp.gnu.org/pub/gnu/ed/ed-&ed-version;.tar.gz">
|
---|
[b38db96] | 9 | <!ENTITY ed-md5sum "e66c03d7e4c67b025d5b6093ec678267">
|
---|
| 10 | <!ENTITY ed-size "91 KB">
|
---|
[a958f32] | 11 | <!ENTITY ed-buildsize "2 MB">
|
---|
[1fc6df6] | 12 | <!ENTITY ed-time "Less than 0.1 SBU">
|
---|
[0590c1b6] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="ed" xreflabel="Ed-&ed-version;">
|
---|
[13c7e881] | 16 | <?dbhtml filename="ed.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>Ed-&ed-version;</title>
|
---|
| 24 |
|
---|
[c0ed152] | 25 | <indexterm zone="ed">
|
---|
| 26 | <primary sortas="a-Ed">Ed</primary>
|
---|
[13c7e881] | 27 | </indexterm>
|
---|
| 28 |
|
---|
[d820d781] | 29 | <sect2 role="package">
|
---|
[13c7e881] | 30 | <title>Introduction to Ed</title>
|
---|
| 31 |
|
---|
| 32 | <para><application>Ed</application> is a line-oriented text editor. It
|
---|
| 33 | is used to create, display, modify and otherwise manipulate text files,
|
---|
| 34 | both interactively and via shell scripts. Ed isn't something which many
|
---|
| 35 | people use. It's described here because it can be used by the patch
|
---|
| 36 | program if you encounter an ed-based patch file. This happens rarely
|
---|
| 37 | because diff-based patches are preferred these days.</para>
|
---|
| 38 |
|
---|
[4784037] | 39 | &lfs70_checked;
|
---|
[a958f32] | 40 |
|
---|
[13c7e881] | 41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 42 | <itemizedlist spacing="compact">
|
---|
| 43 | <listitem>
|
---|
| 44 | <para>Download (HTTP): <ulink url="&ed-download-http;"/></para>
|
---|
| 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>Download (FTP): <ulink url="&ed-download-ftp;"/></para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>Download MD5 sum: &ed-md5sum;</para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>Download size: &ed-size;</para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>Estimated disk space required: &ed-buildsize;</para>
|
---|
| 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
| 59 | <para>Estimated build time: &ed-time;</para>
|
---|
| 60 | </listitem>
|
---|
| 61 | </itemizedlist>
|
---|
| 62 |
|
---|
[3597eb6] | 63 | <para condition="html" role="usernotes">User Notes:
|
---|
| 64 | <ulink url="&blfs-wiki;/ed"/></para>
|
---|
| 65 |
|
---|
[13c7e881] | 66 | </sect2>
|
---|
| 67 |
|
---|
| 68 | <sect2 role="installation">
|
---|
| 69 | <title>Installation of Ed</title>
|
---|
| 70 |
|
---|
| 71 | <para>Install <application>Ed</application> by running the following
|
---|
| 72 | commands:</para>
|
---|
| 73 |
|
---|
[a1e440f] | 74 | <screen><userinput>./configure --prefix=/usr --bindir=/bin &&
|
---|
[13c7e881] | 75 | make</userinput></screen>
|
---|
| 76 |
|
---|
[c0ed152] | 77 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
| 78 |
|
---|
[13c7e881] | 79 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 80 |
|
---|
[a1e440f] | 81 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 82 |
|
---|
| 83 | </sect2>
|
---|
| 84 |
|
---|
| 85 | <sect2 role="commands">
|
---|
| 86 | <title>Command Explanations</title>
|
---|
| 87 |
|
---|
| 88 | <para><parameter>--bindir=/bin</parameter>: This parameter places the
|
---|
| 89 | <command>ed</command> binary into the root filesystem.</para>
|
---|
[13c7e881] | 90 |
|
---|
| 91 | </sect2>
|
---|
| 92 |
|
---|
| 93 | <sect2 role="content">
|
---|
| 94 | <title>Contents</title>
|
---|
| 95 |
|
---|
| 96 | <segmentedlist>
|
---|
| 97 | <segtitle>Installed Programs</segtitle>
|
---|
| 98 | <segtitle>Installed Libraries</segtitle>
|
---|
| 99 | <segtitle>Installed Directories</segtitle>
|
---|
| 100 |
|
---|
| 101 | <seglistitem>
|
---|
| 102 | <seg>ed and red</seg>
|
---|
| 103 | <seg>None</seg>
|
---|
| 104 | <seg>None</seg>
|
---|
| 105 | </seglistitem>
|
---|
| 106 | </segmentedlist>
|
---|
| 107 |
|
---|
| 108 | <variablelist>
|
---|
| 109 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 110 | <?dbfo list-presentation="list"?>
|
---|
| 111 | <?dbhtml list-presentation="table"?>
|
---|
| 112 |
|
---|
| 113 | <varlistentry id="ed-prog">
|
---|
| 114 | <term><command>ed</command></term>
|
---|
| 115 | <listitem>
|
---|
| 116 | <para>is a line-oriented text editor.</para>
|
---|
| 117 | <indexterm zone="ed ed-prog">
|
---|
| 118 | <primary sortas="b-ed">ed</primary>
|
---|
| 119 | </indexterm>
|
---|
| 120 | </listitem>
|
---|
| 121 | </varlistentry>
|
---|
| 122 |
|
---|
| 123 | <varlistentry id="red">
|
---|
| 124 | <term><command>red</command></term>
|
---|
| 125 | <listitem>
|
---|
[13679edb] | 126 | <para>is a restricted <command>ed</command>—it can only edit
|
---|
| 127 | files in the current directory and cannot execute shell
|
---|
| 128 | commands.</para>
|
---|
[13c7e881] | 129 | <indexterm zone="ed red">
|
---|
| 130 | <primary sortas="b-red">red</primary>
|
---|
| 131 | </indexterm>
|
---|
| 132 | </listitem>
|
---|
| 133 | </varlistentry>
|
---|
| 134 |
|
---|
| 135 | </variablelist>
|
---|
| 136 |
|
---|
| 137 | </sect2>
|
---|
[0590c1b6] | 138 |
|
---|
| 139 | </sect1>
|
---|