123 lines
3.5 KiB
HTML
123 lines
3.5 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of ED</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>ED</H1>
|
|
Section: User Commands (1)<BR>Updated: February 2020<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
ed - line-oriented text editor
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>ed</B>
|
|
|
|
[<I>,options/</I>] [<I>,file/</I>]
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
GNU ed is a line-oriented text editor. It is used to create, display,
|
|
modify and otherwise manipulate text files, both interactively and via
|
|
shell scripts. A restricted version of ed, red, can only edit files in
|
|
the current directory and cannot execute shell commands. Ed is the
|
|
'standard' text editor in the sense that it is the original editor for
|
|
Unix, and thus widely available. For most purposes, however, it is
|
|
superseded by full-screen editors such as GNU Emacs or GNU Moe.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="1"><B>-h</B>, <B>--help</B><DD>
|
|
display this help and exit
|
|
<DT id="2"><B>-V</B>, <B>--version</B><DD>
|
|
output version information and exit
|
|
<DT id="3"><B>-G</B>, <B>--traditional</B><DD>
|
|
run in compatibility mode
|
|
<DT id="4"><B>-l</B>, <B>--loose-exit-status</B><DD>
|
|
exit with 0 status even if a command fails
|
|
<DT id="5"><B>-p</B>, <B>--prompt</B>=<I>,STRING/</I><DD>
|
|
use STRING as an interactive prompt
|
|
<DT id="6"><B>-r</B>, <B>--restricted</B><DD>
|
|
run in restricted mode
|
|
<DT id="7"><B>-s</B>, <B>--quiet</B>, <B>--silent</B><DD>
|
|
suppress diagnostics, byte counts and '!' prompt
|
|
<DT id="8"><B>-v</B>, <B>--verbose</B><DD>
|
|
be verbose; equivalent to the 'H' command
|
|
</DL>
|
|
<P>
|
|
|
|
Start edit by reading in 'file' if given.
|
|
If 'file' begins with a '!', read output of shell command.
|
|
<P>
|
|
|
|
Exit status: 0 for a normal exit, 1 for environmental problems (file
|
|
not found, invalid flags, I/O errors, etc), 2 to indicate a corrupt or
|
|
invalid input file, 3 for an internal consistency error (eg, bug) which
|
|
caused ed to panic.
|
|
<A NAME="lbAF"> </A>
|
|
<H2>REPORTING BUGS</H2>
|
|
|
|
Report bugs to <A HREF="mailto:bug-ed@gnu.org">bug-ed@gnu.org</A>
|
|
<BR>
|
|
|
|
Ed home page: <A HREF="http://www.gnu.org/software/ed/ed.html">http://www.gnu.org/software/ed/ed.html</A>
|
|
<BR>
|
|
|
|
General help using GNU software: <A HREF="http://www.gnu.org/gethelp">http://www.gnu.org/gethelp</A>
|
|
<A NAME="lbAG"> </A>
|
|
<H2>COPYRIGHT</H2>
|
|
|
|
Copyright © 1994 Andrew L. Moore.
|
|
<BR>
|
|
|
|
Copyright © 2020 Antonio Diaz Diaz.
|
|
License GPLv3+: GNU GPL version 3 or later <<A HREF="http://gnu.org/licenses/gpl.html">http://gnu.org/licenses/gpl.html</A>>
|
|
<BR>
|
|
|
|
This is free software: you are free to change and redistribute it.
|
|
There is NO WARRANTY, to the extent permitted by law.
|
|
<A NAME="lbAH"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
The full documentation for
|
|
<B>ed</B>
|
|
|
|
is maintained as a Texinfo manual. If the
|
|
<B>info</B>
|
|
|
|
and
|
|
<B>ed</B>
|
|
|
|
programs are properly installed at your site, the command
|
|
<DL COMPACT>
|
|
<DT id="9"><DD>
|
|
<B>info ed</B>
|
|
|
|
</DL>
|
|
<P>
|
|
|
|
should give you access to the complete manual.
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="10"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="11"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="12"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="13"><A HREF="#lbAE">OPTIONS</A><DD>
|
|
<DT id="14"><A HREF="#lbAF">REPORTING BUGS</A><DD>
|
|
<DT id="15"><A HREF="#lbAG">COPYRIGHT</A><DD>
|
|
<DT id="16"><A HREF="#lbAH">SEE ALSO</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:11 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|