ed.1 (2010 09)
e
ed(1) ed(1)
WARNINGS
ed(1) allows a Maximum Line Length of
4096 characters. Attempting to create lines longer than
the allowable limit causes
ed(1) to produce a
Line too long error message.
If a file contains lines longer than the specified limit (eg., 4096 characters), the longer lines will be trun-
cated to the stated maximum length. Saving the file will write the truncated version over the original file,
thus overwriting the original lines completely.
A
! command cannot be subject to a
g or a v command.
The
! command and the ! escape from the
e, r, and w commands cannot be used if the the editor is
invoked from a restricted shell (see sh(1)).
The sequence
\n in a regular expression does not match a newline character.
The
l command does not handle DEL correctly.
Files encrypted directly with the
crypt command with the null key cannot be edited (see crypt (1)).
If the editor input is coming from a command file (e.g.,
ed file < ed-cmd-file), the editor exits at
the first failure of a command in the command file.
When reading a file,
ed discards ASCII NUL characters and all characters after the last newline. This
can cause unexpected behavior when using regular expressions to search for character sequences contain-
ing NUL characters or text near end-of-file.
AUTHOR
ed was developed by HP and OSF.
FILES
/tmp/ep Temporary buffer file where p is the process number.
ed.hup Work is saved here if the terminal is hung up.
SEE ALSO
awk(1), csh(1), crypt(1), ex(1), grep(1), ksh(1), sed(1), sh(1), sh-posix(1), stty(1), vi(1), fspec(4), environ(5),
lang(5), regexp(5), standards(5).
The ed section in Text Processing: User’s Guide .
STANDARDS CONFORMANCE
ed: SVID2, SVID3, XPG2, XPG3, XPG4, POSIX.2
red: SVID2, SVID3, XPG2, XPG3
HP-UX 11i Version 3: September 2010 − 7 − Hewlett-Packard Company 7