ed man page

ed — line-oriented text editor

TL;DR

ed

ed -p :

ed -p : {{path/to/file}}

H

a<Enter>{{text_to_insert}}<Enter>.

,p

w {{filename}}

q

Synopsis

ed [options] [file]

Description

GNU Ed - The GNU line editor.

Options

-h, --help
display this help and exit
-V, --version
output version information and exit
-G, --traditional
run in compatibility mode
-l, --loose-exit-status
exit with 0 status even if a command fails
-p, --prompt=STRING
use STRING as an interactive prompt
-r, --restricted
run in restricted mode
-s, --quiet, --silent
suppress diagnostics
-v, --verbose
be verbose

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.

Reporting Bugs

Report bugs to bug-ed@gnu.org
Ed home page: http://www.gnu.org/software/ed/ed.html
General help using GNU software: http://www.gnu.org/gethelp

Referenced By

alternatives(8), bmake(1), dash(1), jove(1), mailx(1), mc(1), med(1), mksh(1), opax(1), patch(1), pick(1), rc(1), rdist(1), regex(7), sed(1), spax(1), star(1), tcsh(1), xs(1).

January 2016 ed 1.13 User Commands