Lines Matching full:command

72 \fBed\fR simulates an \fBe\fR command (see below) on the named file. That is,
77 to the copy have no effect on the file until a \fBw\fR (write) command is
84 commands via \fB!\fR\fIshell command\fR. Attempts to bypass these restrictions
106 \fIaddresses\fR followed by a single-character \fIcommand\fR, possibly followed
107 by parameters to that command. These addresses specify one or more lines in the
108 buffer. Every command that requires addresses has default addresses, so that
112 In general, only one command may appear on a line. Certain commands allow the
128 line is the last line affected by a command. The exact effect on the current
129 line is discussed under the description of each command.
138 addresses is given; if more addresses are given than such a command requires,
183 command are \fInot\fR part of the address. Rather, the parentheses show the
184 default address(es) for the command.
188 command letter can be preceded by zero or more blank characters. If a suffix
190 command.
194 \fIfile\fR parameter, separated from the command letter by one or more blank
198 If changes have been made in the buffer since the last \fBw\fR command that
213 \fBH\fR command) to standard output and continues in command mode with the
214 current line number unchanged. If the \fBe\fR or \fBq\fR command is repeated
215 with no intervening command, \fBed\fR takes effect.
218 If an end-of-file is detected on standard input when a command is expected, the
219 \fBed\fR utility acts as if a \fBq\fR command had been entered.
222 It is generally illegal for more than one command to appear on a line. However,
223 any command (except \fBe\fR, \fBf\fR, \fBr\fR, or \fBw\fR) may be suffixed by
241 The \fBa\fRppend command accepts zero or more lines of text and appends it
244 0 is legal for this command: it causes the ``appended'' text to be placed at
263 The \fBc\fRhange command deletes the addressed lines from the buffer, then
276 Address 0 is not legal for this command.
285 Address 0 is valid for this command. It is interpreted as if the address 1 were
297 Same as the \fBX\fR command, described later, except that \fBed\fR assumes all
308 The \fBd\fRelete command deletes the addressed lines from the buffer. The line
321 The \fBe\fRdit command deletes the entire contents of the buffer and then reads
324 remembered file name, if any, is used (see the \fBf\fR command). The number of
332 \fB!\fR, the rest of the line is taken to be a shell ( \fBsh\fR(1)) command
333 whose output is to be read. Such a shell command is \fInot\fR remembered as the
335 the completion of a successful \fBe\fR command. If the buffer has changed since
346 The \fBE\fRdit command is like \fBe\fR, except that the editor does not check
348 command.
357 If \fIfile\fR is given, the \fBf\fR command changes the currently remembered
359 command then writes the (possibly new) currently remembered path name to the
370 \fB\fB(1,$)g/\fR\fIRE\fR\fB/\fR\fIcommand list\fR\fR
373 In the \fBg\fRlobal command, the first step is to mark every line that matches
374 the given \fIRE\fR. Then, for every such line, the given \fIcommand list\fR is
376 \fBg\fR command completes, the current line number has the value assigned by
377 the last command in the command list. If there were no matching lines, the
378 current line number is not changed. A single command or the first of a list of
379 commands appears on the same line as the global command. All lines of a
383 the last line of the \fIcommand list\fR. An empty \fIcommand list\fR is
384 equivalent to the \fBp\fR command. The \fBg\fR, \fBG\fR, \fBv\fR, \fBV\fR, and
385 \fB!\fR commands are \fInot\fR permitted in the \fIcommand list\fR. See also
398 In the interactive \fBG\fRlobal command, the first step is to mark every line
401 line, and any \fIone\fR command (other than one of the \fBa\fR, \fBc\fR,
403 executed. After the execution of that command, the next marked line is written,
404 and so on. A new-line acts as a null command. An \fB&\fR causes the
405 re-execution of the most recent non-null command executed within the current
407 of the \fBG\fR command may address and affect \fBany\fR lines in the buffer.
408 The final value of the current line number is the value set by the last command
409 successfully executed. (Notice that the last command successfully executed is
410 the \fBG\fR command itself if a command fails or the null command is
412 changed. The \fBG\fR command can be terminated by a \fBSIGINT\fR signal. The
413 \fBG\fR command can be terminated by an interrupt signal (ASCII DEL or BREAK).
425 The \fBhelp\fR command gives a short error message that explains the reason for
435 The \fBHelp\fR command causes \fBed\fR to enter a mode in which error messages
437 previous \fB?\fR if there was one. The \fBH\fR command alternately turns this
455 The \fBinsert\fR command accepts zero or more lines of text and inserts it
458 command differs from the \fBa\fR command only in the placement of the input
467 Address 0 is not legal for this command.
476 Address 0 is valid for this command. It is interpreted as if the address 1 were
488 The \fBj\fRoin command joins contiguous lines by removing the appropriate
489 new-line characters. If exactly one address is given, this command does
500 The mar\fBk\fR command marks the addressed line with name \fIx\fR, which must
511 The \fBl\fR command writes to standard output the addressed lines in a visually
522 with a \fB$\fR. When using the \fB/usr/xpg6/bin/ed\fR command, the end of each
524 text are written with a preceding backslash. An \fBl\fR command can be appended
525 to any other command other than \fBe\fR, \fBE\fR, \fBf\fR, \fBq\fR, \fBQ\fR,
536 The \fBm\fRove command repositions the addressed line(s) after the line
549 The \fBn\fRumber command writes the addressed lines, preceding each line by its
551 last line written. The \fBn\fR command may be appended to any command other
561 The \fBp\fRrint command writes the addressed lines to standard output. The
562 current line (\fB\&.\fR) is left at the last line written. The \fBp\fR command
563 may be appended to any command other than \fBe\fR, \fBE\fR, \fBf\fR, \fBq\fR,
574 The \fBP\fR command causes \fBed\fR to prompt with an asterisk (\fB*\fR) (or
576 \fBP\fR command alternatively turns this mode on and off; it is initially on if
586 The \fBq\fRuit command causes \fBed\fR to exit. If the buffer has changed since
598 the last \fBw\fR command.
607 The \fBr\fRead command reads the contents of \fIfile\fR into the buffer. If
624 replaced by \fB!\fR, the rest of the line is taken to be a shell command (see
626 current directory to the end of the file being edited. Such a shell command is
658 The \fBs\fRubstitute command searches each addressed line for an occurrence of
662 appears after the command. If the global indicator does not appear, only the
664 appears after the command, only the \fIcount\fR-th occurrence of the matched
682 most recent substitute command is used as the \fIreplacement\fR in the current
683 substitute command. If there was no previous substitute command, the use of
693 substitution cannot be done as part of a \fBg\fR or \fBv\fR command list. The
701 The substitute command supports the following indicators:
730 line is written in the format specified for the \fBl\fR command.
740 line is written in the format specified for the \fBn\fR command.
750 line will be written in the format specified for the \fBp\fR command.
762 This command acts just like the \fBm\fR command, except that a \fIcopy\fR of
774 The \fBu\fRndo command nullifies the effect of the most recent command that
777 \fBu\fR, \fBv\fR, \fBG\fR, or \fBV\fR command. All changes made to the buffer
778 by a \fBg\fR, \fBG\fR, \fBv\fR, or \fBV\fR global command is undone as a single
779 change.If no changes were made by the global command (such as with \fBg/\fR
780 \fIRE\fR\fB/p\fR), the \fBu\fR command has no effect. The current line number
781 is set to the value it had immediately before the command being undone
788 \fB\fB(1,$)v/\fR\fIRE\fR\fB/\fR\fIcommand list\fR\fR
792 This command is the same as the global command \fBg\fR, except that the lines
803 This command is the same as the interactive global command \fBG\fR, except that
815 The \fBw\fRrite command writes the addressed lines into \fIfile\fR. If
818 the description of the \fBumask\fR special command on \fBsh\fR(1). The
822 \fBf\fR commands). The current line (\fB\&.\fR) is unchanged. If the command is
834 shell (see \fBsh\fR(1)) command whose standard input is the addressed lines.
835 Such a shell command is \fInot\fR remembered as the current path name. This
836 usage of the write command with \fB!\fR is to be considered as a ``last \fBw\fR
837 command that wrote the entire buffer''.
846 This command is the same as the \fBw\fRrite command above, except that it
849 command.
881 The current line number is unchanged by this command.
887 \fB\fB!\fR\fIshell command\fR\fR
891 (see \fBsh\fR(1)) to be interpreted as a command. Within the text of that
892 command, the unescaped character \fB%\fR is replaced with the remembered file
893 name. If a \fB!\fR appears as the first character of the shell command, it is
894 replaced with the text of the previous shell command. Thus, \fB!!\fR repeats
895 the last shell command. If any replacements of \fB%\fR or \fB!\fR are
897 \fIcommand\fR is executed. The \fB!\fR command will write:
920 "\fB?\en\fR" and returns to \fBits\fR command level.
932 "\fB?\en\fR" to standard output, and returns to command mode.
945 used. In any case, the \fBed\fR utility exits without returning to command
952 in a global command list, and 255 characters in the path name of a file
997 If an invalid command is entered, \fBed\fR writes the string:
1004 \fBH\fR command) to standard output and continues in command mode with the
1013 simulates a \fBC\fR command. The \fBC\fR command is like the \fBX\fR command,
1035 prompt after a \fB!\fR\fIshell command\fR.
1044 Encryption option. When \fB-x\fR is used, \fBed\fR simulates an \fBX\fR command
1045 and prompts the user for a key. The \fBX\fR command makes an educated guess to
1059 If \fIfile\fR is specified, \fBed\fR simulates an \fBe\fR command on the file
1080 Successful completion without any file or command errors.
1190 for command errors.
1205 If changes have been made in the buffer since the last \fBw\fR command that
1208 \fB?\fR and allows one to continue editing. A second \fBe\fR or \fBq\fR command
1209 at this point will take effect. The \fB-s\fR command-line option inhibits this
1213 the documentation by the \fB-s\fR option that follows the \fBCommand Syntax
1217 A \fB!\fR command cannot be subject to a \fBg\fR or a \fBv\fR command.
1220 The \fB!\fR command and the \fB!\fR escape from the \fBe\fR, \fBr\fR, and
1228 If the editor input is coming from a command file (for example, \fBed\fR