1ED(1) User Commands ED(1)
2
3
4
6 ed - line-oriented text editor
7
9 ed [options] [file]
10
12 GNU ed is a line-oriented text editor. It is used to create, display,
13 modify and otherwise manipulate text files, both interactively and via
14 shell scripts. A restricted version of ed, red, can only edit files in
15 the current directory and cannot execute shell commands. Ed is the
16 'standard' text editor in the sense that it is the original editor for
17 Unix, and thus widely available. For most purposes, however, it is su‐
18 perseded by full-screen editors such as GNU Emacs or GNU Moe.
19
21 -h, --help
22 display this help and exit
23
24 -V, --version
25 output version information and exit
26
27 -E, --extended-regexp
28 use extended regular expressions
29
30 -G, --traditional
31 run in compatibility mode
32
33 -l, --loose-exit-status
34 exit with 0 status even if a command fails
35
36 -p, --prompt=STRING
37 use STRING as an interactive prompt
38
39 -q, --quiet, --silent
40 suppress diagnostics written to stderr
41
42 -r, --restricted
43 run in restricted mode
44
45 -s, --script
46 suppress byte counts and '!' prompt
47
48 -v, --verbose
49 be verbose; equivalent to the 'H' command
50
51 --strip-trailing-cr
52 strip carriage returns at end of text lines
53
54 Start edit by reading in 'file' if given. If 'file' begins with a '!',
55 read output of shell command.
56
57 Exit status: 0 for a normal exit, 1 for environmental problems (file
58 not found, invalid command line options, I/O errors, etc), 2 to indi‐
59 cate a corrupt or invalid input file, 3 for an internal consistency er‐
60 ror (e.g., bug) which caused ed to panic.
61
63 Report bugs to bug-ed@gnu.org
64 Ed home page: http://www.gnu.org/software/ed/ed.html
65 General help using GNU software: http://www.gnu.org/gethelp
66
68 Copyright © 1994 Andrew L. Moore.
69 Copyright © 2023 Antonio Diaz Diaz. License GPLv2+: GNU GPL version 2
70 or later <http://gnu.org/licenses/gpl.html>
71 This is free software: you are free to change and redistribute it.
72 There is NO WARRANTY, to the extent permitted by law.
73
75 The full documentation for ed is maintained as a Texinfo manual. If
76 the info and ed programs are properly installed at your site, the com‐
77 mand
78
79 info ed
80
81 should give you access to the complete manual.
82
83
84
85GNU ed 1.19 January 2023 ED(1)