ED(1) User Commands ED(1)
Ed – line-oriented text editor
ed [options] [file]
GNU Ed – The GNU line editor.
display this help and exit
output version information and exit
run in compatibility mode
exit with 0 status even if a command fails
use STRING as an interactive prompt
run in restricted mode
-s, –quiet, –silent
Start edit by reading in ‘file’ if given. If ‘file’ begins with a ‘!’,
read output of shell command.
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.
Report bugs to email@example.com
Ed home page: http://www.gnu.org/software/ed/ed.html
General help using GNU software: http://www.gnu.org/gethelp
Copyright © 1994 Andrew L. Moore.
Copyright © 2014 Free Software Foundation, Inc. License GPLv3+: GNU
GPL version 3 or later
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
The full documentation for Ed is maintained as a Texinfo manual. If
the info and Ed programs are properly installed at your site, the com‐
should give you access to the complete manual.
Ed 1.10 January 2014 ED(1)