Debian Codegraph @

upstream/debian-trixie/man1/ed.1

raw
1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.2.
2 .TH ED "1" "March 2025" "GNU ed 1.21.1" "User Commands"
3 .SH NAME
4 ed \- line-oriented text editor
5 .SH SYNOPSIS
6 .B ed
7 [\fI\,options\/\fR] [[\fI\,+line\/\fR] \fI\,file\/\fR]
8 .SH DESCRIPTION
9 GNU ed is a line\-oriented text editor. It is used to create, display,
10 modify and otherwise manipulate text files, both interactively and via
11 shell scripts. A restricted version of ed, red, can only edit files in
12 the current directory and cannot execute shell commands. Ed is the
13 \&'standard' text editor in the sense that it is the original editor for
14 Unix, and thus widely available. For most purposes, however, it is
15 superseded by full\-screen editors such as GNU Emacs or GNU Moe.
16 .PP
17 The file name may be preceded by '+line', '+/RE', or '+?RE' to set the
18 current line to the line number specified or to the first or last line
19 matching the regular expression 'RE'.
20 .PP
21 The environment variable LINES can be used to set the initial window size.
22 .SH OPTIONS
23 .TP
24 \fB\-h\fR, \fB\-\-help\fR
25 display this help and exit
26 .TP
27 \fB\-V\fR, \fB\-\-version\fR
28 output version information and exit
29 .TP
30 \fB\-E\fR, \fB\-\-extended\-regexp\fR
31 use extended regular expressions
32 .TP
33 \fB\-G\fR, \fB\-\-traditional\fR
34 run in compatibility mode
35 .TP
36 \fB\-l\fR, \fB\-\-loose\-exit\-status\fR
37 exit with 0 status even if a command fails
38 .TP
39 \fB\-p\fR, \fB\-\-prompt\fR=\fI\,STRING\/\fR
40 use STRING as an interactive prompt
41 .TP
42 \fB\-q\fR, \fB\-\-quiet\fR, \fB\-\-silent\fR
43 suppress diagnostics written to stderr
44 .TP
45 \fB\-r\fR, \fB\-\-restricted\fR
46 run in restricted mode
47 .TP
48 \fB\-s\fR, \fB\-\-script\fR
49 suppress byte counts and '!' prompt
50 .TP
51 \fB\-v\fR, \fB\-\-verbose\fR
52 be verbose; equivalent to the 'H' command
53 .TP
54 \fB\-\-strip\-trailing\-cr\fR
55 strip carriage returns at end of text lines
56 .TP
57 \fB\-\-unsafe\-names\fR
58 allow control characters 1\-31 in file names
59 .PP
60 Start edit by reading in 'file' if given.
61 If 'file' begins with a '!', read output of shell command.
62 .PP
63 Exit status: 0 for a normal exit, 1 for environmental problems
64 (invalid command\-line options, memory exhausted, command failed, etc),
65 2 for problems with the input file (file not found, buffer modified,
66 I/O errors), 3 for an internal consistency error (e.g., bug) which caused
67 ed to panic.
68 .SH "REPORTING BUGS"
69 Report bugs to bug\[email protected]
70 .br
71 Ed home page: http://www.gnu.org/software/ed/ed.html
72 .br
73 General help using GNU software: http://www.gnu.org/gethelp
74 .SH COPYRIGHT
75 Copyright \(co 1994 Andrew L. Moore.
76 .br
77 Copyright \(co 2025 Antonio Diaz Diaz.
78 License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>
79 .br
80 This is free software: you are free to change and redistribute it.
81 There is NO WARRANTY, to the extent permitted by law.
82 .SH "SEE ALSO"
83 The full documentation for
84 .B ed
85 is maintained as a Texinfo manual. If the
86 .B info
87 and
88 .B ed
89 programs are properly installed at your site, the command
90 .IP
91 .B info ed
92 .PP
93 should give you access to the complete manual.