Lines Matching +full:in +full:- +full:line

22 utility is a line-oriented text editor.
27 the editor runs in
29 mode, in which the only difference is that the editor restricts the
39 links can be created in the current directory, in which case
58 Editing is done in two distinct modes:
64 is in command mode.
102 on a line.
112 It is possible to modify only a portion of a line by means of replacement,
113 as in the example above.
120 commands consist of zero or more line addresses, followed by a single
131 The address(es) indicate the line or range of lines to be affected by the
137 .Bl -tag -width indent
166 .Sh LINE ADDRESSING
167 An address represents the number of a line in the buffer.
174 When a file is first read, the current address is set to the last line
176 In general, the current address is set to the last line
179 A line address is
180 constructed from one of the bases in the list below, optionally followed
185 .Em -
192 One exception to the rule that addresses represent line numbers is the
196 This means "before the first line,"
200 semi-colon.
201 The value of the first address in a range cannot exceed the
203 If only one address is given in a range, then
206 .Em n Ns -tuple
209 then the corresponding range is determined by the last two addresses in
211 .Em n Ns -tuple .
214 Each address in a comma-delimited range is interpreted relative to the
216 In a semi-colon-delimited range, the first address is
221 .Bl -tag -width indent
223 The current line (address) in the buffer.
225 The last line in the buffer.
229 line in the buffer
232 is a number in the range
234 .It - or ^
235 The previous line.
237 .Em -1
239 .It -n or ^n
242 previous line, where
244 is a non-negative number.
246 The next line.
253 next line, where
255 is a non-negative number.
257 The first through last lines in the buffer.
262 The current through last lines in the buffer.
267 The next line containing the regular expression
270 current line, if necessary.
274 previous line containing the regular expression
277 current line, if necessary.
281 line previously marked by a
288 Regular expressions are patterns used in selecting text.
310 to match several strings in a line, then the left-most longest match is
313 The following symbols are used in constructing regular expressions:
314 .Bl -tag -width indent
328 Any backslash-escaped character
341 .It Op char-class
342 Match any single character in
343 .Em char-class .
347 .Em char-class ,
351 .Ql - ,
353 .Ql a-z
355 The following literal expressions can also be used in
356 .Em char-class
359 .Bl -column "[:alnum:]" "[:cntrl:]" "[:lower:]" "[:xdigit:]" -compact
366 .Ql -
369 .Em char-class ,
371 All other characters in
372 .Em char-class
375 Patterns in
376 .Em char-class
379 .Bl -item -compact -offset 2n
381 .Op \&. Ns Ar col-elm Ns .\&
384 .Op = Ns Ar col-elm Ns =
388 .Ar col-elm
398 .It Op ^char-class
399 Match any single character, other than newline, not in
400 .Em char-class .
401 .Em Char-class
408 anchors the regular expression to the beginning of a line.
414 anchors the regular expression to the end of a line.
432 is a number in the range [1,9], expands to the text matched by the
460 is the only left-most match.
487 each line except for the last
490 In general, at most one command is allowed per line.
499 to print the last line affected by the command.
510 specified (in parenthesis).
511 .Bl -tag -width indent
513 Append text to the buffer after the addressed line.
514 Text is entered in input mode.
515 The current address is set to last line entered.
517 Change lines in the buffer.
519 from the buffer, and text is appended in their place.
520 Text is entered in input mode.
521 The current address is set to last line entered.
524 If there is a line after the deleted range, then the current address is set
525 to this line.
526 Otherwise the current address is set to the line
535 Any lines in the buffer are deleted before
537 The current address is set to the last line read.
545 Any lines in the buffer are deleted before the output of
548 The current address is set to the last line read.
557 The current address is set to the last line read.
564 .It (1,$)g/re/command-list
566 .Ar command-list
570 line currently matched before
571 .Ar command-list
575 command, the current address is set to the last line affected by
576 .Ar command-list .
578 Each command in
579 .Ar command-list
580 must be on a separate line,
581 and every line except for the last must be terminated by a backslash
589 A newline alone in
590 .Ar command-list
597 For each matching line,
598 the line is printed,
601 .Ar command-list .
605 is set to the last line affected by (the last)
606 .Ar command-list .
609 .Ar command-list
616 repeats the last non-null command list.
621 aid in debugging.
625 Insert text in the buffer before the current line.
626 Text is entered in input mode.
627 The current address is set to the last line entered.
632 line containing their joined text.
633 The current address is set to the resultant line.
635 Mark a line with a lower case letter
637 The line can then be addressed as
642 The mark is not cleared until the line is
646 If a single line fills more than one screen (as might be the case
648 .Dq Li --More--
649 prompt is printed on the last line.
654 The current address is set to the last line
657 Move lines in the buffer.
659 right-hand destination address, which may be the address
663 last line moved.
666 their line numbers.
667 The current address is set to the last line
671 The current address is set to the last line
675 Unless a prompt was specified by with command-line option
692 to after the addressed line.
701 The current address is set to the last line read.
704 to after the addressed line
711 The current address is set to the last line read.
715 Replace text in the addressed lines
720 By default, only the first match in each line is replaced.
733 The current address is set the last line affected.
742 If one or two of the last delimiters is omitted, then the last line
756 is a number in the range [1,9], is replaced by the
766 Newlines may be embedded in
796 The current address is set to the last line affected.
798 Copy (i.e., transfer) the addressed lines to after the right-hand
802 The current address is set to the last line
816 .It (1,$)v/re/command-list
818 .Ar command-list
865 lines at a time starting at addressed line.
869 The current address is set to the last line printed.
893 The current line is unchanged.
895 Print the line number of the addressed line.
897 Print the addressed line, and sets the current address to
898 that line.
901 .Bl -tag -width /tmp/ed.* -compact
924 it can be used to perform conditional operations in scripts; e.g.,
940 (undo) command occurs in a global command list, then
946 results in an error.
955 USD:12-13
959 .%B Software Tools in Pascal
960 .%O Addison-Wesley
978 arguments for backslash escapes, i.e., in a filename,
982 If a text (non-binary) file is not terminated by a newline character,
990 per line overhead: 4 ints
994 command appeared in