1ED(1)                            User Commands                           ED(1)
2
3
4

NAME

6       ed - line-oriented text editor
7

SYNOPSIS

9       ed [options] [file]
10

DESCRIPTION

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

OPTIONS

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       -r, --restricted
40              run in restricted mode
41
42       -s, --quiet, --silent
43              suppress diagnostics, byte counts and '!' prompt
44
45       -v, --verbose
46              be verbose; equivalent to the 'H' command
47
48       --strip-trailing-cr
49              strip carriage returns at end of text lines
50
51       Start edit by reading in 'file' if given.  If 'file' begins with a '!',
52       read output of shell command.
53
54       Exit status: 0 for a normal exit, 1 for  environmental  problems  (file
55       not  found, invalid flags, I/O errors, etc), 2 to indicate a corrupt or
56       invalid input file, 3 for an internal  consistency  error  (e.g.,  bug)
57       which caused ed to panic.
58

REPORTING BUGS

60       Report bugs to bug-ed@gnu.org
61       Ed home page: http://www.gnu.org/software/ed/ed.html
62       General help using GNU software: http://www.gnu.org/gethelp
63
65       Copyright © 1994 Andrew L. Moore.
66       Copyright  © 2022 Antonio Diaz Diaz.  License GPLv2+: GNU GPL version 2
67       or later <http://gnu.org/licenses/gpl.html>
68       This is free software: you are free  to  change  and  redistribute  it.
69       There is NO WARRANTY, to the extent permitted by law.
70

SEE ALSO

72       The  full  documentation  for ed is maintained as a Texinfo manual.  If
73       the info and ed programs are properly installed at your site, the  com‐
74       mand
75
76              info ed
77
78       should give you access to the complete manual.
79
80
81
82GNU ed 1.18                      February 2022                           ED(1)
Impressum