Lines Matching full:command
63 * Command and Option Index:: A menu with all `sed' commands and
64 command-line options.
73 * The "s" Command:: `sed''s Swiss Army Knife
133 `sed' may be invoked with the following command-line options:
140 Print a usage message briefly summarizing these command-line
149 produces output when explicitly told to via the `p' command.
188 Specify the default line-wrap length for the `l' command. A
198 the behavior of the `N' command described in *note Reporting
218 case, if the file that is specified on the command line is a
233 By default, `sed' will consider the files specified on the command
250 the command-line, then the first non-option argument on the command
253 If any command-line parameters remain after processing the above,
280 Each `sed' command consists of an optional address or address range,
281 followed by a one-character command name and any additional
282 command-specific code.
290 * The "s" Command:: `sed''s Swiss Army Knife
308 are executed; each command can have an address associated to it:
309 addresses are a kind of condition code, and a command is only executed
310 if the condition is verified before the command is to be executed.
363 passed to the `s' command). Note that modifiers to regular
515 modified, for example with an `s' command.
643 File: sed.info, Node: Common Commands, Next: The "s" Command, Prev: Regular Expressions, Up: sed Programs
670 This command only accepts a single address.
682 command is usually only used in conjunction with the `-n'
683 command-line option.
698 File: sed.info, Node: The "s" Command, Next: Other Commands, Prev: Common Commands, Up: sed Programs
700 3.5 The `s' Command
703 The syntax of the `s' (as in substitute) command is
705 replaced by any other single character within any given `s' command.
710 The `s' command is probably the most important in `sed' and has a
711 lot of different options. Its basic concept is simple: the `s' command
744 The `s' command can be followed by zero or more of the following
771 flags for the `s' command show their effect just once. This
782 This command allows one to pipe input from a shell command into
783 pattern space. If a substitution was made, the command that is
786 undefined if the command to be executed contains a NUL character.
809 File: sed.info, Node: Other Commands, Next: Programming Commands, Prev: The "s" Command, Up: sed Programs
820 character within any given `y' command.)
833 As a GNU extension, this command accepts two addresses.
835 Queue the lines of text which follow this command (each but the
852 As a GNU extension, this command accepts two addresses.
854 Immediately output the lines of text which follow this command
861 the lines of text which follow this command (each but the last
864 specified). A new cycle is started after this command is done,
868 As a GNU extension, this command accepts two addresses.
880 specified on the command line is used. The N parameter is a GNU
884 As a GNU extension, this command accepts two addresses.
982 `e [COMMAND]'
983 This command allows one to pipe input from a shell command into
984 pattern space. Without parameters, the `e' command executes the
985 command that is found in pattern space and replaces the pattern
988 If a parameter is specified, instead, the `e' command interprets
989 it as a command and sends its output to the output stream (like
990 `r' does). The command can run across multiple lines, all but the
993 In both cases, the results are undefined if the command to be
999 if N is omitted, the default as specified on the command line is
1000 used. This command is considered a failed experiment and unless
1005 This command only accepts a single address.
1007 This command is the same as `q', but will not print the contents
1011 This command can be useful because the only alternative ways to
1029 As with the `r' command, the special value `/dev/stdin' is
1040 This command does nothing, but makes `sed' fail if GNU `sed'
1045 implemented this command.
1047 This command enables all GNU extensions even if `POSIXLY_CORRECT'
1052 the first newline. Everything said under the `w' command about
1056 This command empties the content of pattern space. It is usually
1400 output of the `set' Bourne-shell command.
1437 Note the `tx' command before the definition of the label. This is
1438 often needed to reset the flag that is tested by the `t' command.
1529 command). The line number for the next line is then composed and
1760 before the `q' command.
1786 adding a line and deleting the oldest (the substitution command on the
1787 second line works like a `D' command but does not restart the loop).
1834 # the n command.
1839 # If the `N' command had added the last line, print and exit
2069 `N' command on the last line
2071 command is issued on the last line of a file. GNU `sed' prints
2072 pattern space before exiting unless of course the `-n' command
2174 locales). For this reason, GNU `sed' provides a `z' command (for
2221 File: sed.info, Node: Concept Index, Next: Command and Option Index, Prev: Extended regexps, Up: Top
2227 exception of the `sed' commands and command-line options.
2244 * Backreferences, in regular expressions: The "s" Command. (line 19)
2252 * Case-insensitive matching: The "s" Command. (line 94)
2254 * Command groups: Common Commands. (line 50)
2262 * Disabling autoprint, from command line: Invoking sed. (line 34)
2267 * Evaluate Bourne-shell commands, after substitution: The "s" Command.
2276 * Global substitution: The "s" Command. (line 51)
2278 * GNU extensions, /dev/stderr file: The "s" Command. (line 78)
2282 * GNU extensions, /dev/stdout file <2>: The "s" Command. (line 78)
2290 * GNU extensions, case modifiers in s commands: The "s" Command.
2299 * GNU extensions, evaluating Bourne-shell commands: The "s" Command.
2302 * GNU extensions, g and NUMBER modifier interaction in s command: The "s" Command.
2304 * GNU extensions, I modifier <1>: The "s" Command. (line 94)
2308 * GNU extensions, L command: Extended Commands. (line 26)
2309 * GNU extensions, M modifier: The "s" Command. (line 99)
2314 * GNU extensions, R command: Extended Commands. (line 53)
2326 * GNU extensions, subprocesses: The "s" Command. (line 85)
2362 * Mixing g and NUMBER modifiers in the s command: The "s" Command.
2370 * Non-bugs, N command on the last line: Reporting Bugs. (line 31)
2372 * Parenthesized substrings: The "s" Command. (line 19)
2377 * Portability, N command on the last line: Reporting Bugs. (line 31)
2382 * POSIXLY_CORRECT behavior, N command: Reporting Bugs. (line 46)
2399 * Replacing all text matching regexp in a line: The "s" Command.
2401 * Replacing only Nth match of regexp in a line: The "s" Command.
2407 * Script, from command line: Invoking sed. (line 41)
2418 * Subprocesses: The "s" Command. (line 85)
2419 * Substitution of text, options: The "s" Command. (line 47)
2424 * Text, printing after substitution: The "s" Command. (line 65)
2425 * Text, writing to a file after substitution: The "s" Command.
2437 File: sed.info, Node: Command and Option Index, Prev: Concept Index, Up: Top
2439 Command and Option Index
2442 This is an alphabetical list of all `sed' commands and command-line
2470 * : (label) command: Programming Commands.
2472 * = (print line number) command: Other Commands. (line 62)
2473 * a (append text lines) command: Other Commands. (line 27)
2474 * b (branch) command: Programming Commands.
2476 * c (change to text lines) command: Other Commands. (line 52)
2477 * D (delete first line) command: Other Commands. (line 99)
2478 * d (delete) command: Common Commands. (line 36)
2479 * e (evaluate) command: Extended Commands. (line 12)
2480 * G (appending Get) command: Other Commands. (line 125)
2481 * g (get) command: Other Commands. (line 121)
2482 * H (append Hold) command: Other Commands. (line 117)
2483 * h (hold) command: Other Commands. (line 113)
2484 * i (insert text lines) command: Other Commands. (line 46)
2485 * L (fLow paragraphs) command: Extended Commands. (line 26)
2486 * l (list unambiguously) command: Other Commands. (line 65)
2487 * N (append Next line) command: Other Commands. (line 105)
2488 * n (next-line) command: Common Commands. (line 44)
2489 * P (print first line) command: Other Commands. (line 110)
2490 * p (print) command: Common Commands. (line 39)
2491 * q (quit) command: Common Commands. (line 30)
2492 * Q (silent Quit) command: Extended Commands. (line 36)
2493 * r (read file) command: Other Commands. (line 78)
2494 * R (read line) command: Extended Commands. (line 53)
2495 * s command, option flags: The "s" Command. (line 47)
2496 * T (test and branch if failed) command: Extended Commands. (line 63)
2497 * t (test and branch if successful) command: Programming Commands.
2499 * v (version) command: Extended Commands. (line 69)
2500 * w (write file) command: Other Commands. (line 88)
2501 * W (write first line) command: Extended Commands. (line 80)
2502 * x (eXchange) command: Other Commands. (line 129)
2503 * y (transliterate) command: Other Commands. (line 14)
2504 * z (Zap) command: Extended Commands. (line 85)
2505 * {} command grouping: Common Commands. (line 50)
2521 Node: The "s" Command28085
2522 Ref: The "s" Command-Footnote-132422
2556 Node: Command and Option Index92298