|
|
DataMuseum.dkPresents historical artifacts from the history of: RC9000 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about RC9000 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - downloadIndex: s
Length: 7360 (0x1cc0)
Names: »sed.1«
└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
└─⟦bbf173f5c⟧ »0004«
└─⟦this⟧ »./usr/man/cat1/sed.1«
0x0000…0020 0a 0a 0a 5f 08 4f 5f 08 6e 5f 08 6c 5f 08 69 5f 08 6e 5f 08 65 20 5f 08 4d 5f 08 61 5f 08 6e 5f ┆ _ O_ n_ l_ i_ n_ e _ M_ a_ n_┆ 0x0020…0040 08 75 5f 08 61 5f 08 6c 20 20 20 20 20 20 20 20 20 20 20 20 20 55 73 65 72 20 43 6f 6d 6d 61 6e ┆ u_ a_ l User Comman┆ 0x0040…0060 64 73 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 65 64 28 31 29 0a 0a 0a 0a ┆ds sed(1) ┆ 0x0060…0080 4e 08 4e 08 4e 08 4e 41 08 41 08 41 08 41 4d 08 4d 08 4d 08 4d 45 08 45 08 45 08 45 0a 20 20 20 ┆N N N NA A A AM M M ME E E E ┆ 0x0080…00a0 20 20 73 65 64 20 2d 20 73 74 72 65 61 6d 20 65 64 69 74 6f 72 0a 0a 53 08 53 08 53 08 53 59 08 ┆ sed - stream editor S S S SY ┆ 0x00a0…00c0 59 08 59 08 59 4e 08 4e 08 4e 08 4e 54 08 54 08 54 08 54 41 08 41 08 41 08 41 58 08 58 08 58 08 ┆Y Y YN N N NT T T TA A A AX X X ┆ 0x00c0…00e0 58 0a 20 20 20 20 20 73 08 73 08 73 08 73 65 08 65 08 65 08 65 64 08 64 08 64 08 64 20 5b 20 2d ┆X s s s se e e ed d d d [ -┆ 0x00e0…0100 08 2d 08 2d 08 2d 6e 08 6e 08 6e 08 6e 20 5d 20 5b 20 2d 08 2d 08 2d 08 2d 65 08 65 08 65 08 65 ┆ - - -n n n n ] [ - - - -e e e e┆ 0x0100…0120 20 73 63 72 69 70 74 20 5d 20 5b 20 2d 08 2d 08 2d 08 2d 66 08 66 08 66 08 66 20 73 66 69 6c 65 ┆ script ] [ - - - -f f f f sfile┆ 0x0120…0140 20 5d 20 5b 20 66 69 6c 65 20 5d 20 2e 2e 2e 0a 0a 44 08 44 08 44 08 44 45 08 45 08 45 08 45 53 ┆ ] [ file ] ... D D D DE E E ES┆ 0x0140…0160 08 53 08 53 08 53 43 08 43 08 43 08 43 52 08 52 08 52 08 52 49 08 49 08 49 08 49 50 08 50 08 50 ┆ S S SC C C CR R R RI I I IP P P┆ 0x0160…0180 08 50 54 08 54 08 54 08 54 49 08 49 08 49 08 49 4f 08 4f 08 4f 08 4f 4e 08 4e 08 4e 08 4e 0a 20 ┆ PT T T TI I I IO O O ON N N N ┆ 0x0180…01a0 20 20 20 20 5f 08 73 5f 08 65 5f 08 64 20 63 6f 70 69 65 73 20 74 68 65 20 6e 61 6d 65 64 20 5f ┆ _ s_ e_ d copies the named _┆ 0x01a0…01c0 08 66 5f 08 69 5f 08 6c 5f 08 65 5f 08 73 20 28 73 74 61 6e 64 61 72 64 20 69 6e 70 75 74 20 64 ┆ f_ i_ l_ e_ s (standard input d┆ 0x01c0…01e0 65 66 61 75 6c 74 29 20 74 6f 20 74 68 65 0a 20 20 20 20 20 73 74 61 6e 64 61 72 64 20 6f 75 74 ┆efault) to the standard out┆ 0x01e0…0200 70 75 74 2c 20 65 64 69 74 65 64 20 61 63 63 6f 72 64 69 6e 67 20 74 6f 20 61 20 73 63 72 69 70 ┆put, edited according to a scrip┆ 0x0200…0220 74 20 6f 66 20 63 6f 6d 6d 61 6e 64 73 2e 0a 20 20 20 20 20 54 68 65 20 2d 08 2d 08 2d 08 2d 66 ┆t of commands. The - - - -f┆ 0x0220…0240 08 66 08 66 08 66 20 6f 70 74 69 6f 6e 20 63 61 75 73 65 73 20 74 68 65 20 73 63 72 69 70 74 20 ┆ f f f option causes the script ┆ 0x0240…0260 74 6f 20 62 65 20 74 61 6b 65 6e 20 66 72 6f 6d 20 66 69 6c 65 20 5f 08 73 5f 08 66 5f 08 69 5f ┆to be taken from file _ s_ f_ i_┆ 0x0260…0280 08 6c 5f 08 65 3b 0a 20 20 20 20 20 74 68 65 73 65 20 6f 70 74 69 6f 6e 73 20 61 63 63 75 6d 75 ┆ l_ e; these options accumu┆ 0x0280…02a0 6c 61 74 65 2e 20 20 49 66 20 74 68 65 72 65 20 69 73 20 6a 75 73 74 20 6f 6e 65 20 2d 08 2d 08 ┆late. If there is just one - - ┆ 0x02a0…02c0 2d 08 2d 65 08 65 08 65 08 65 20 6f 70 74 69 6f 6e 0a 20 20 20 20 20 61 6e 64 20 6e 6f 20 2d 08 ┆- -e e e e option and no - ┆ 0x02c0…02e0 2d 08 2d 08 2d 66 08 66 08 66 08 66 27 73 2c 20 74 68 65 20 66 6c 61 67 20 2d 08 2d 08 2d 08 2d ┆- - -f f f f's, the flag - - - -┆ 0x02e0…0300 65 08 65 08 65 08 65 20 6d 61 79 20 62 65 20 6f 6d 69 74 74 65 64 2e 20 20 54 68 65 20 2d 08 2d ┆e e e e may be omitted. The - -┆ 0x0300…0320 08 2d 08 2d 6e 08 6e 08 6e 08 6e 20 6f 70 74 69 6f 6e 0a 20 20 20 20 20 73 75 70 70 72 65 73 73 ┆ - -n n n n option suppress┆ 0x0320…0340 65 73 20 74 68 65 20 64 65 66 61 75 6c 74 20 6f 75 74 70 75 74 2e 0a 0a 20 20 20 20 20 41 20 73 ┆es the default output. A s┆ 0x0340…0360 63 72 69 70 74 20 63 6f 6e 73 69 73 74 73 20 6f 66 20 65 64 69 74 69 6e 67 20 63 6f 6d 6d 61 6e ┆cript consists of editing comman┆ 0x0360…0380 64 73 2c 20 6f 6e 65 20 70 65 72 20 6c 69 6e 65 2c 20 6f 66 20 74 68 65 0a 20 20 20 20 20 66 6f ┆ds, one per line, of the fo┆ 0x0380…03a0 6c 6c 6f 77 69 6e 67 20 66 6f 72 6d 3a 0a 0a 20 20 20 20 20 20 20 20 20 20 5b 61 64 64 72 65 73 ┆llowing form: [addres┆ 0x03a0…03c0 73 20 5b 2c 20 61 64 64 72 65 73 73 5d 20 5d 20 66 75 6e 63 74 69 6f 6e 20 5b 61 72 67 75 6d 65 ┆s [, address] ] function [argume┆ 0x03c0…03e0 6e 74 73 5d 0a 0a 20 20 20 20 20 49 6e 20 6e 6f 72 6d 61 6c 20 6f 70 65 72 61 74 69 6f 6e 20 5f ┆nts] In normal operation _┆ 0x03e0…0400 08 73 5f 08 65 5f 08 64 20 63 79 63 6c 69 63 61 6c 6c 79 20 63 6f 70 69 65 73 20 61 20 6c 69 6e ┆ s_ e_ d cyclically copies a lin┆ 0x0400…0420 65 20 6f 66 20 69 6e 70 75 74 0a 20 20 20 20 20 69 6e 74 6f 20 61 20 5f 08 70 5f 08 61 5f 08 74 ┆e of input into a _ p_ a_ t┆ 0x0420…0440 5f 08 74 5f 08 65 5f 08 72 5f 08 6e 20 5f 08 73 5f 08 70 5f 08 61 5f 08 63 5f 08 65 20 28 75 6e ┆_ t_ e_ r_ n _ s_ p_ a_ c_ e (un┆ 0x0440…0460 6c 65 73 73 20 74 68 65 72 65 20 69 73 20 73 6f 6d 65 74 68 69 6e 67 20 6c 65 66 74 20 61 66 74 ┆less there is something left aft┆ 0x0460…0480 65 72 20 61 0a 20 20 20 20 20 60 44 27 20 63 6f 6d 6d 61 6e 64 29 2c 20 61 70 70 6c 69 65 73 20 ┆er a `D' command), applies ┆ 0x0480…04a0 69 6e 20 73 65 71 75 65 6e 63 65 20 61 6c 6c 20 63 6f 6d 6d 61 6e 64 73 20 77 68 6f 73 65 0a 20 ┆in sequence all commands whose ┆ 0x04a0…04c0 20 20 20 20 5f 08 61 5f 08 64 5f 08 64 5f 08 72 5f 08 65 5f 08 73 5f 08 73 5f 08 65 5f 08 73 20 ┆ _ a_ d_ d_ r_ e_ s_ s_ e_ s ┆ 0x04c0…04e0 73 65 6c 65 63 74 20 74 68 61 74 20 70 61 74 74 65 72 6e 20 73 70 61 63 65 2c 20 61 6e 64 20 61 ┆select that pattern space, and a┆ 0x04e0…0500 74 20 74 68 65 20 65 6e 64 20 6f 66 20 74 68 65 0a 20 20 20 20 20 73 63 72 69 70 74 20 63 6f 70 ┆t the end of the script cop┆ 0x0500…0520 69 65 73 20 74 68 65 20 70 61 74 74 65 72 6e 20 73 70 61 63 65 20 74 6f 20 74 68 65 20 73 74 61 ┆ies the pattern space to the sta┆ 0x0520…0540 6e 64 61 72 64 20 6f 75 74 70 75 74 0a 20 20 20 20 20 28 65 78 63 65 70 74 20 75 6e 64 65 72 20 ┆ndard output (except under ┆ 0x0540…0560 2d 08 2d 08 2d 08 2d 6e 08 6e 08 6e 08 6e 29 20 61 6e 64 20 64 65 6c 65 74 65 73 20 74 68 65 20 ┆- - - -n n n n) and deletes the ┆ 0x0560…0580 70 61 74 74 65 72 6e 20 73 70 61 63 65 2e 0a 0a 20 20 20 20 20 41 6e 20 5f 08 61 5f 08 64 5f 08 ┆pattern space. An _ a_ d_ ┆ 0x0580…05a0 64 5f 08 72 5f 08 65 5f 08 73 5f 08 73 20 69 73 20 65 69 74 68 65 72 20 61 20 64 65 63 69 6d 61 ┆d_ r_ e_ s_ s is either a decima┆ 0x05a0…05c0 6c 20 6e 75 6d 62 65 72 20 74 68 61 74 20 63 6f 75 6e 74 73 20 69 6e 70 75 74 0a 20 20 20 20 20 ┆l number that counts input ┆ 0x05c0…05e0 6c 69 6e 65 73 20 63 75 6d 75 6c 61 74 69 76 65 6c 79 20 61 63 72 6f 73 73 20 66 69 6c 65 73 2c ┆lines cumulatively across files,┆ 0x05e0…0600 20 61 20 60 24 27 20 74 68 61 74 20 61 64 64 72 65 73 73 65 73 20 74 68 65 0a 20 20 20 20 20 6c ┆ a `$' that addresses the l┆ 0x0600…0620 61 73 74 20 6c 69 6e 65 20 6f 66 20 69 6e 70 75 74 2c 20 6f 72 20 61 20 63 6f 6e 74 65 78 74 20 ┆ast line of input, or a context ┆ 0x0620…0640 61 64 64 72 65 73 73 2c 20 60 2f 72 65 67 75 6c 61 72 20 65 78 70 72 65 73 2d 0a 20 20 20 20 20 ┆address, `/regular expres- ┆ 0x0640…0660 73 69 6f 6e 2f 27 2c 20 69 6e 20 74 68 65 20 73 74 79 6c 65 20 6f 66 20 5f 08 65 5f 08 64 28 31 ┆sion/', in the style of _ e_ d(1┆ 0x0660…0680 29 20 6d 6f 64 69 66 69 65 64 20 74 68 75 73 3a 0a 0a 20 20 20 20 20 20 20 20 20 20 54 68 65 20 ┆) modified thus: The ┆ 0x0680…06a0 65 73 63 61 70 65 20 73 65 71 75 65 6e 63 65 20 60 5c 6e 27 20 6d 61 74 63 68 65 73 20 61 20 6e ┆escape sequence `\n' matches a n┆ 0x06a0…06c0 65 77 6c 69 6e 65 20 65 6d 62 65 64 64 65 64 20 69 6e 0a 20 20 20 20 20 20 20 20 20 20 74 68 65 ┆ewline embedded in the┆ 0x06c0…06e0 20 70 61 74 74 65 72 6e 20 73 70 61 63 65 2e 0a 0a 20 20 20 20 20 41 20 63 6f 6d 6d 61 6e 64 20 ┆ pattern space. A command ┆ 0x06e0…0700 6c 69 6e 65 20 77 69 74 68 20 6e 6f 20 61 64 64 72 65 73 73 65 73 20 73 65 6c 65 63 74 73 20 65 ┆line with no addresses selects e┆ 0x0700…0720 76 65 72 79 20 70 61 74 74 65 72 6e 0a 20 20 20 20 20 73 70 61 63 65 2e 0a 0a 20 20 20 20 20 41 ┆very pattern space. A┆ 0x0720…0740 20 63 6f 6d 6d 61 6e 64 20 6c 69 6e 65 20 77 69 74 68 20 6f 6e 65 20 61 64 64 72 65 73 73 20 73 ┆ command line with one address s┆ 0x0740…0760 65 6c 65 63 74 73 20 65 61 63 68 20 70 61 74 74 65 72 6e 20 73 70 61 63 65 0a 20 20 20 20 20 74 ┆elects each pattern space t┆ 0x0760…0780 68 61 74 20 6d 61 74 63 68 65 73 20 74 68 65 20 61 64 64 72 65 73 73 2e 0a 0a 20 20 20 20 20 41 ┆hat matches the address. A┆ 0x0780…07a0 20 63 6f 6d 6d 61 6e 64 20 6c 69 6e 65 20 77 69 74 68 20 74 77 6f 20 61 64 64 72 65 73 73 65 73 ┆ command line with two addresses┆ 0x07a0…07c0 20 73 65 6c 65 63 74 73 20 74 68 65 20 69 6e 63 6c 75 73 69 76 65 0a 20 20 20 20 20 72 61 6e 67 ┆ selects the inclusive rang┆ 0x07c0…07e0 65 20 66 72 6f 6d 20 74 68 65 20 66 69 72 73 74 20 70 61 74 74 65 72 6e 20 73 70 61 63 65 20 74 ┆e from the first pattern space t┆ 0x07e0…0800 68 61 74 20 6d 61 74 63 68 65 73 20 74 68 65 20 66 69 72 73 74 0a 20 20 20 20 20 61 64 64 72 65 ┆hat matches the first addre┆ 0x0800…0820 73 73 20 74 68 72 6f 75 67 68 20 74 68 65 20 6e 65 78 74 20 70 61 74 74 65 72 6e 20 73 70 61 63 ┆ss through the next pattern spac┆ 0x0820…0840 65 20 74 68 61 74 20 6d 61 74 63 68 65 73 20 74 68 65 0a 20 20 20 20 20 73 65 63 6f 6e 64 2e 20 ┆e that matches the second. ┆ 0x0840…0860 20 28 49 66 20 74 68 65 20 73 65 63 6f 6e 64 20 61 64 64 72 65 73 73 20 69 73 20 61 20 6e 75 6d ┆ (If the second address is a num┆ 0x0860…0880 62 65 72 20 6c 65 73 73 20 74 68 61 6e 20 6f 72 0a 20 20 20 20 20 65 71 75 61 6c 20 74 6f 20 74 ┆ber less than or equal to t┆ 0x0880…08a0 68 65 20 6c 69 6e 65 20 6e 75 6d 62 65 72 20 66 69 72 73 74 20 73 65 6c 65 63 74 65 64 2c 20 6f ┆he line number first selected, o┆ 0x08a0…08c0 6e 6c 79 20 6f 6e 65 20 6c 69 6e 65 20 69 73 0a 20 20 20 20 20 73 65 6c 65 63 74 65 64 2e 29 20 ┆nly one line is selected.) ┆ 0x08c0…08e0 54 68 65 72 65 61 66 74 65 72 20 74 68 65 20 70 72 6f 63 65 73 73 20 69 73 20 72 65 70 65 61 74 ┆Thereafter the process is repeat┆ 0x08e0…0900 65 64 2c 20 6c 6f 6f 6b 69 6e 67 20 61 67 61 69 6e 0a 20 20 20 20 20 66 6f 72 20 74 68 65 20 66 ┆ed, looking again for the f┆ 0x0900…0920 69 72 73 74 20 61 64 64 72 65 73 73 2e 0a 0a 20 20 20 20 20 45 64 69 74 69 6e 67 20 63 6f 6d 6d ┆irst address. Editing comm┆ 0x0920…0940 61 6e 64 73 20 63 61 6e 20 62 65 20 61 70 70 6c 69 65 64 20 6f 6e 6c 79 20 74 6f 20 6e 6f 6e 2d ┆ands can be applied only to non-┆ 0x0940…0960 73 65 6c 65 63 74 65 64 20 70 61 74 74 65 72 6e 0a 20 20 20 20 20 73 70 61 63 65 73 20 62 79 20 ┆selected pattern spaces by ┆ 0x0960…0980 75 73 65 20 6f 66 20 74 68 65 20 6e 65 67 61 74 69 6f 6e 20 66 75 6e 63 74 69 6f 6e 20 60 21 27 ┆use of the negation function `!'┆ 0x0980…09a0 20 28 62 65 6c 6f 77 29 2e 0a 0a 20 20 20 20 20 49 6e 20 74 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 ┆ (below). In the following┆ 0x09a0…09c0 20 6c 69 73 74 20 6f 66 20 66 75 6e 63 74 69 6f 6e 73 20 74 68 65 20 6d 61 78 69 6d 75 6d 20 6e ┆ list of functions the maximum n┆ 0x09c0…09e0 75 6d 62 65 72 20 6f 66 0a 20 20 20 20 20 70 65 72 6d 69 73 73 69 62 6c 65 20 61 64 64 72 65 73 ┆umber of permissible addres┆ 0x09e0…0a00 73 65 73 20 66 6f 72 20 65 61 63 68 20 66 75 6e 63 74 69 6f 6e 20 69 73 20 69 6e 64 69 63 61 74 ┆ses for each function is indicat┆ 0x0a00…0a20 65 64 20 69 6e 0a 20 20 20 20 20 70 61 72 65 6e 74 68 65 73 65 73 2e 0a 0a 20 20 20 20 20 41 6e ┆ed in parentheses. An┆ 0x0a20…0a40 20 61 72 67 75 6d 65 6e 74 20 64 65 6e 6f 74 65 64 20 5f 08 74 5f 08 65 5f 08 78 5f 08 74 20 63 ┆ argument denoted _ t_ e_ x_ t c┆ 0x0a40…0a60 6f 6e 73 69 73 74 73 20 6f 66 20 6f 6e 65 20 6f 72 20 6d 6f 72 65 20 6c 69 6e 65 73 2c 20 61 6c ┆onsists of one or more lines, al┆ 0x0a60…0a80 6c 0a 20 20 20 20 20 62 75 74 20 74 68 65 20 6c 61 73 74 20 6f 66 20 77 68 69 63 68 20 65 6e 64 ┆l but the last of which end┆ 0x0a80…0aa0 20 77 69 74 68 20 60 5c 27 20 74 6f 20 68 69 64 65 20 74 68 65 20 6e 65 77 6c 69 6e 65 2e 0a 20 ┆ with `\' to hide the newline. ┆ 0x0aa0…0ac0 20 20 20 20 42 61 63 6b 73 6c 61 73 68 65 73 20 69 6e 20 74 65 78 74 20 61 72 65 20 74 72 65 61 ┆ Backslashes in text are trea┆ 0x0ac0…0ae0 74 65 64 20 6c 69 6b 65 20 62 61 63 6b 73 6c 61 73 68 65 73 20 69 6e 20 74 68 65 0a 20 20 20 20 ┆ted like backslashes in the ┆ 0x0ae0…0b00 20 72 65 70 6c 61 63 65 6d 65 6e 74 20 73 74 72 69 6e 67 20 6f 66 20 61 6e 20 60 73 27 20 63 6f ┆ replacement string of an `s' co┆ 0x0b00…0b20 6d 6d 61 6e 64 2c 20 61 6e 64 20 6d 61 79 20 62 65 20 75 73 65 64 20 74 6f 0a 0a 0a 0a 0a 0a 0a ┆mmand, and may be used to ┆ 0x0b20…0b40 20 20 20 20 20 70 72 6f 74 65 63 74 20 69 6e 69 74 69 61 6c 20 62 6c 61 6e 6b 73 20 61 6e 64 20 ┆ protect initial blanks and ┆ 0x0b40…0b60 74 61 62 73 20 61 67 61 69 6e 73 74 20 74 68 65 20 73 74 72 69 70 70 69 6e 67 20 74 68 61 74 0a ┆tabs against the stripping that ┆ 0x0b60…0b80 20 20 20 20 20 69 73 20 64 6f 6e 65 20 6f 6e 20 65 76 65 72 79 20 73 63 72 69 70 74 20 6c 69 6e ┆ is done on every script lin┆ 0x0b80…0ba0 65 2e 0a 0a 20 20 20 20 20 41 6e 20 61 72 67 75 6d 65 6e 74 20 64 65 6e 6f 74 65 64 20 5f 08 72 ┆e. An argument denoted _ r┆ 0x0ba0…0bc0 5f 08 66 5f 08 69 5f 08 6c 5f 08 65 20 6f 72 20 5f 08 77 5f 08 66 5f 08 69 5f 08 6c 5f 08 65 20 ┆_ f_ i_ l_ e or _ w_ f_ i_ l_ e ┆ 0x0bc0…0be0 6d 75 73 74 20 74 65 72 6d 69 6e 61 74 65 20 74 68 65 20 63 6f 6d 2d 0a 20 20 20 20 20 6d 61 6e ┆must terminate the com- man┆ 0x0be0…0c00 64 20 6c 69 6e 65 20 61 6e 64 20 6d 75 73 74 20 62 65 20 70 72 65 63 65 64 65 64 20 62 79 20 65 ┆d line and must be preceded by e┆ 0x0c00…0c20 78 61 63 74 6c 79 20 6f 6e 65 20 62 6c 61 6e 6b 2e 20 20 45 61 63 68 0a 20 20 20 20 20 5f 08 77 ┆xactly one blank. Each _ w┆ 0x0c20…0c40 5f 08 66 5f 08 69 5f 08 6c 5f 08 65 20 69 73 20 63 72 65 61 74 65 64 20 62 65 66 6f 72 65 20 70 ┆_ f_ i_ l_ e is created before p┆ 0x0c40…0c60 72 6f 63 65 73 73 69 6e 67 20 62 65 67 69 6e 73 2e 20 20 54 68 65 72 65 20 63 61 6e 20 62 65 20 ┆rocessing begins. There can be ┆ 0x0c60…0c80 61 74 0a 20 20 20 20 20 6d 6f 73 74 20 31 30 20 64 69 73 74 69 6e 63 74 20 5f 08 77 5f 08 66 5f ┆at most 10 distinct _ w_ f_┆ 0x0c80…0ca0 08 69 5f 08 6c 5f 08 65 20 61 72 67 75 6d 65 6e 74 73 2e 0a 0a 20 20 20 20 20 28 31 29 61 5c 0a ┆ i_ l_ e arguments. (1)a\ ┆ 0x0ca0…0cc0 20 20 20 20 20 5f 08 74 5f 08 65 5f 08 78 5f 08 74 0a 20 20 20 20 20 20 20 20 20 20 41 70 70 65 ┆ _ t_ e_ x_ t Appe┆ 0x0cc0…0ce0 6e 64 2e 20 20 50 6c 61 63 65 20 5f 08 74 5f 08 65 5f 08 78 5f 08 74 20 6f 6e 20 74 68 65 20 6f ┆nd. Place _ t_ e_ x_ t on the o┆ 0x0ce0…0d00 75 74 70 75 74 20 62 65 66 6f 72 65 20 72 65 61 64 69 6e 67 20 74 68 65 0a 20 20 20 20 20 20 20 ┆utput before reading the ┆ 0x0d00…0d20 20 20 20 6e 65 78 74 20 69 6e 70 75 74 20 6c 69 6e 65 2e 0a 0a 20 20 20 20 20 28 32 29 62 20 5f ┆ next input line. (2)b _┆ 0x0d20…0d40 08 6c 5f 08 61 5f 08 62 5f 08 65 5f 08 6c 0a 20 20 20 20 20 20 20 20 20 20 42 72 61 6e 63 68 20 ┆ l_ a_ b_ e_ l Branch ┆ 0x0d40…0d60 74 6f 20 74 68 65 20 60 3a 27 20 63 6f 6d 6d 61 6e 64 20 62 65 61 72 69 6e 67 20 74 68 65 20 5f ┆to the `:' command bearing the _┆ 0x0d60…0d80 08 6c 5f 08 61 5f 08 62 5f 08 65 5f 08 6c 2e 20 20 49 66 20 5f 08 6c 5f 08 61 5f 08 62 5f 08 65 ┆ l_ a_ b_ e_ l. If _ l_ a_ b_ e┆ 0x0d80…0da0 5f 08 6c 0a 20 20 20 20 20 20 20 20 20 20 69 73 20 65 6d 70 74 79 2c 20 62 72 61 6e 63 68 20 74 ┆_ l is empty, branch t┆ 0x0da0…0dc0 6f 20 74 68 65 20 65 6e 64 20 6f 66 20 74 68 65 20 73 63 72 69 70 74 2e 0a 0a 20 20 20 20 20 28 ┆o the end of the script. (┆ 0x0dc0…0de0 32 29 63 5c 0a 20 20 20 20 20 5f 08 74 5f 08 65 5f 08 78 5f 08 74 0a 20 20 20 20 20 20 20 20 20 ┆2)c\ _ t_ e_ x_ t ┆ 0x0de0…0e00 20 43 68 61 6e 67 65 2e 20 20 44 65 6c 65 74 65 20 74 68 65 20 70 61 74 74 65 72 6e 20 73 70 61 ┆ Change. Delete the pattern spa┆ 0x0e00…0e20 63 65 2e 20 20 57 69 74 68 20 30 20 6f 72 20 31 20 61 64 64 72 65 73 73 0a 20 20 20 20 20 20 20 ┆ce. With 0 or 1 address ┆ 0x0e20…0e40 20 20 20 6f 72 20 61 74 20 74 68 65 20 65 6e 64 20 6f 66 20 61 20 32 2d 61 64 64 72 65 73 73 20 ┆ or at the end of a 2-address ┆ 0x0e40…0e60 72 61 6e 67 65 2c 20 70 6c 61 63 65 20 5f 08 74 5f 08 65 5f 08 78 5f 08 74 20 6f 6e 20 74 68 65 ┆range, place _ t_ e_ x_ t on the┆ 0x0e60…0e80 0a 20 20 20 20 20 20 20 20 20 20 6f 75 74 70 75 74 2e 20 20 53 74 61 72 74 20 74 68 65 20 6e 65 ┆ output. Start the ne┆ 0x0e80…0ea0 78 74 20 63 79 63 6c 65 2e 0a 0a 20 20 20 20 20 28 32 29 64 20 44 65 6c 65 74 65 20 74 68 65 20 ┆xt cycle. (2)d Delete the ┆ 0x0ea0…0ec0 70 61 74 74 65 72 6e 20 73 70 61 63 65 2e 20 20 53 74 61 72 74 20 74 68 65 20 6e 65 78 74 20 63 ┆pattern space. Start the next c┆ 0x0ec0…0ee0 79 63 6c 65 2e 0a 0a 20 20 20 20 20 28 32 29 44 20 44 65 6c 65 74 65 20 74 68 65 20 69 6e 69 74 ┆ycle. (2)D Delete the init┆ 0x0ee0…0f00 69 61 6c 20 73 65 67 6d 65 6e 74 20 6f 66 20 74 68 65 20 70 61 74 74 65 72 6e 20 73 70 61 63 65 ┆ial segment of the pattern space┆ 0x0f00…0f20 20 74 68 72 6f 75 67 68 0a 20 20 20 20 20 20 20 20 20 20 74 68 65 20 66 69 72 73 74 20 6e 65 77 ┆ through the first new┆ 0x0f20…0f40 6c 69 6e 65 2e 20 20 53 74 61 72 74 20 74 68 65 20 6e 65 78 74 20 63 79 63 6c 65 2e 0a 0a 20 20 ┆line. Start the next cycle. ┆ 0x0f40…0f60 20 20 20 28 32 29 67 20 52 65 70 6c 61 63 65 20 74 68 65 20 63 6f 6e 74 65 6e 74 73 20 6f 66 20 ┆ (2)g Replace the contents of ┆ 0x0f60…0f80 74 68 65 20 70 61 74 74 65 72 6e 20 73 70 61 63 65 20 62 79 20 74 68 65 20 63 6f 6e 2d 0a 20 20 ┆the pattern space by the con- ┆ 0x0f80…0fa0 20 20 20 20 20 20 20 20 74 65 6e 74 73 20 6f 66 20 74 68 65 20 68 6f 6c 64 20 73 70 61 63 65 2e ┆ tents of the hold space.┆ 0x0fa0…0fc0 0a 0a 20 20 20 20 20 28 32 29 47 20 41 70 70 65 6e 64 20 74 68 65 20 63 6f 6e 74 65 6e 74 73 20 ┆ (2)G Append the contents ┆ 0x0fc0…0fe0 6f 66 20 74 68 65 20 68 6f 6c 64 20 73 70 61 63 65 20 74 6f 20 74 68 65 20 70 61 74 74 65 72 6e ┆of the hold space to the pattern┆ 0x0fe0…1000 0a 20 20 20 20 20 20 20 20 20 20 73 70 61 63 65 2e 0a 0a 20 20 20 20 20 28 32 29 68 20 52 65 70 ┆ space. (2)h Rep┆ 0x1000…1020 6c 61 63 65 20 74 68 65 20 63 6f 6e 74 65 6e 74 73 20 6f 66 20 74 68 65 20 68 6f 6c 64 20 73 70 ┆lace the contents of the hold sp┆ 0x1020…1040 61 63 65 20 62 79 20 74 68 65 20 63 6f 6e 74 65 6e 74 73 0a 20 20 20 20 20 20 20 20 20 20 6f 66 ┆ace by the contents of┆ 0x1040…1060 20 74 68 65 20 70 61 74 74 65 72 6e 20 73 70 61 63 65 2e 0a 0a 20 20 20 20 20 28 32 29 48 20 41 ┆ the pattern space. (2)H A┆ 0x1060…1080 70 70 65 6e 64 20 74 68 65 20 63 6f 6e 74 65 6e 74 73 20 6f 66 20 74 68 65 20 70 61 74 74 65 72 ┆ppend the contents of the patter┆ 0x1080…10a0 6e 20 73 70 61 63 65 20 74 6f 20 74 68 65 20 68 6f 6c 64 0a 20 20 20 20 20 20 20 20 20 20 73 70 ┆n space to the hold sp┆ 0x10a0…10c0 61 63 65 2e 0a 0a 20 20 20 20 20 28 31 29 69 5c 0a 20 20 20 20 20 5f 08 74 5f 08 65 5f 08 78 5f ┆ace. (1)i\ _ t_ e_ x_┆ 0x10c0…10e0 08 74 0a 20 20 20 20 20 20 20 20 20 20 49 6e 73 65 72 74 2e 20 20 50 6c 61 63 65 20 5f 08 74 5f ┆ t Insert. Place _ t_┆ 0x10e0…1100 08 65 5f 08 78 5f 08 74 20 6f 6e 20 74 68 65 20 73 74 61 6e 64 61 72 64 20 6f 75 74 70 75 74 2e ┆ e_ x_ t on the standard output.┆ 0x1100…1120 0a 0a 20 20 20 20 20 28 32 29 6e 20 43 6f 70 79 20 74 68 65 20 70 61 74 74 65 72 6e 20 73 70 61 ┆ (2)n Copy the pattern spa┆ 0x1120…1140 63 65 20 74 6f 20 74 68 65 20 73 74 61 6e 64 61 72 64 20 6f 75 74 70 75 74 2e 20 20 52 65 70 6c ┆ce to the standard output. Repl┆ 0x1140…1160 61 63 65 0a 20 20 20 20 20 20 20 20 20 20 74 68 65 20 70 61 74 74 65 72 6e 20 73 70 61 63 65 20 ┆ace the pattern space ┆ 0x1160…1180 77 69 74 68 20 74 68 65 20 6e 65 78 74 20 6c 69 6e 65 20 6f 66 20 69 6e 70 75 74 2e 0a 0a 20 20 ┆with the next line of input. ┆ 0x1180…11a0 20 20 20 28 32 29 4e 20 41 70 70 65 6e 64 20 74 68 65 20 6e 65 78 74 20 6c 69 6e 65 20 6f 66 20 ┆ (2)N Append the next line of ┆ 0x11a0…11c0 69 6e 70 75 74 20 74 6f 20 74 68 65 20 70 61 74 74 65 72 6e 20 73 70 61 63 65 20 77 69 74 68 0a ┆input to the pattern space with ┆ 0x11c0…11e0 20 20 20 20 20 20 20 20 20 20 61 6e 20 65 6d 62 65 64 64 65 64 20 6e 65 77 6c 69 6e 65 2e 20 20 ┆ an embedded newline. ┆ 0x11e0…1200 28 54 68 65 20 63 75 72 72 65 6e 74 20 6c 69 6e 65 20 6e 75 6d 62 65 72 0a 20 20 20 20 20 20 20 ┆(The current line number ┆ 0x1200…1220 20 20 20 63 68 61 6e 67 65 73 2e 29 0a 0a 20 20 20 20 20 28 32 29 70 20 50 72 69 6e 74 2e 20 20 ┆ changes.) (2)p Print. ┆ 0x1220…1240 43 6f 70 79 20 74 68 65 20 70 61 74 74 65 72 6e 20 73 70 61 63 65 20 74 6f 20 74 68 65 20 73 74 ┆Copy the pattern space to the st┆ 0x1240…1260 61 6e 64 61 72 64 20 6f 75 74 70 75 74 2e 0a 0a 20 20 20 20 20 28 32 29 50 20 43 6f 70 79 20 74 ┆andard output. (2)P Copy t┆ 0x1260…1280 68 65 20 69 6e 69 74 69 61 6c 20 73 65 67 6d 65 6e 74 20 6f 66 20 74 68 65 20 70 61 74 74 65 72 ┆he initial segment of the patter┆ 0x1280…12a0 6e 20 73 70 61 63 65 20 74 68 72 6f 75 67 68 0a 20 20 20 20 20 20 20 20 20 20 74 68 65 20 66 69 ┆n space through the fi┆ 0x12a0…12c0 72 73 74 20 6e 65 77 6c 69 6e 65 20 74 6f 20 74 68 65 20 73 74 61 6e 64 61 72 64 20 6f 75 74 70 ┆rst newline to the standard outp┆ 0x12c0…12e0 75 74 2e 0a 0a 20 20 20 20 20 28 31 29 71 20 51 75 69 74 2e 20 20 42 72 61 6e 63 68 20 74 6f 20 ┆ut. (1)q Quit. Branch to ┆ 0x12e0…1300 74 68 65 20 65 6e 64 20 6f 66 20 74 68 65 20 73 63 72 69 70 74 2e 20 20 44 6f 20 6e 6f 74 20 73 ┆the end of the script. Do not s┆ 0x1300…1320 74 61 72 74 20 61 0a 20 20 20 20 20 20 20 20 20 20 6e 65 77 20 63 79 63 6c 65 2e 0a 0a 20 20 20 ┆tart a new cycle. ┆ 0x1320…1340 20 20 28 32 29 72 20 5f 08 72 5f 08 66 5f 08 69 5f 08 6c 5f 08 65 0a 0a 0a 0a 0a 0a 0a 20 20 20 ┆ (2)r _ r_ f_ i_ l_ e ┆ 0x1340…1360 20 20 20 20 20 20 20 52 65 61 64 20 74 68 65 20 63 6f 6e 74 65 6e 74 73 20 6f 66 20 5f 08 72 5f ┆ Read the contents of _ r_┆ 0x1360…1380 08 66 5f 08 69 5f 08 6c 5f 08 65 2e 20 20 50 6c 61 63 65 20 74 68 65 6d 20 6f 6e 20 74 68 65 20 ┆ f_ i_ l_ e. Place them on the ┆ 0x1380…13a0 6f 75 74 70 75 74 0a 20 20 20 20 20 20 20 20 20 20 62 65 66 6f 72 65 20 72 65 61 64 69 6e 67 20 ┆output before reading ┆ 0x13a0…13c0 74 68 65 20 6e 65 78 74 20 69 6e 70 75 74 20 6c 69 6e 65 2e 0a 0a 20 20 20 20 20 28 32 29 73 2f ┆the next input line. (2)s/┆ 0x13c0…13e0 5f 08 72 5f 08 65 5f 08 67 5f 08 75 5f 08 6c 5f 08 61 5f 08 72 20 5f 08 65 5f 08 78 5f 08 70 5f ┆_ r_ e_ g_ u_ l_ a_ r _ e_ x_ p_┆ 0x13e0…1400 08 72 5f 08 65 5f 08 73 5f 08 73 5f 08 69 5f 08 6f 5f 08 6e 2f 5f 08 72 5f 08 65 5f 08 70 5f 08 ┆ r_ e_ s_ s_ i_ o_ n/_ r_ e_ p_ ┆ 0x1400…1420 6c 5f 08 61 5f 08 63 5f 08 65 5f 08 6d 5f 08 65 5f 08 6e 5f 08 74 2f 5f 08 66 5f 08 6c 5f 08 61 ┆l_ a_ c_ e_ m_ e_ n_ t/_ f_ l_ a┆ 0x1420…1440 5f 08 67 5f 08 73 0a 20 20 20 20 20 20 20 20 20 20 53 75 62 73 74 69 74 75 74 65 20 74 68 65 20 ┆_ g_ s Substitute the ┆ 0x1440…1460 5f 08 72 5f 08 65 5f 08 70 5f 08 6c 5f 08 61 5f 08 63 5f 08 65 5f 08 6d 5f 08 65 5f 08 6e 5f 08 ┆_ r_ e_ p_ l_ a_ c_ e_ m_ e_ n_ ┆ 0x1460…1480 74 20 73 74 72 69 6e 67 20 66 6f 72 20 69 6e 73 74 61 6e 63 65 73 20 6f 66 20 74 68 65 0a 20 20 ┆t string for instances of the ┆ 0x1480…14a0 20 20 20 20 20 20 20 20 5f 08 72 5f 08 65 5f 08 67 5f 08 75 5f 08 6c 5f 08 61 5f 08 72 20 5f 08 ┆ _ r_ e_ g_ u_ l_ a_ r _ ┆ 0x14a0…14c0 65 5f 08 78 5f 08 70 5f 08 72 5f 08 65 5f 08 73 5f 08 73 5f 08 69 5f 08 6f 5f 08 6e 20 69 6e 20 ┆e_ x_ p_ r_ e_ s_ s_ i_ o_ n in ┆ 0x14c0…14e0 74 68 65 20 70 61 74 74 65 72 6e 20 73 70 61 63 65 2e 20 20 41 6e 79 20 63 68 61 72 61 63 74 65 ┆the pattern space. Any characte┆ 0x14e0…1500 72 0a 20 20 20 20 20 20 20 20 20 20 6d 61 79 20 62 65 20 75 73 65 64 20 69 6e 73 74 65 61 64 20 ┆r may be used instead ┆ 0x1500…1520 6f 66 20 60 2f 27 2e 20 20 46 6f 72 20 61 20 66 75 6c 6c 65 72 20 64 65 73 63 72 69 70 74 69 6f ┆of `/'. For a fuller descriptio┆ 0x1520…1540 6e 0a 20 20 20 20 20 20 20 20 20 20 73 65 65 20 5f 08 65 5f 08 64 28 31 29 2e 20 20 5f 08 46 5f ┆n see _ e_ d(1). _ F_┆ 0x1540…1560 08 6c 5f 08 61 5f 08 67 5f 08 73 20 69 73 20 7a 65 72 6f 20 6f 72 20 6d 6f 72 65 20 6f 66 0a 0a ┆ l_ a_ g_ s is zero or more of ┆ 0x1560…1580 20 20 20 20 20 20 20 20 20 20 67 20 20 20 20 47 6c 6f 62 61 6c 2e 20 20 53 75 62 73 74 69 74 75 ┆ g Global. Substitu┆ 0x1580…15a0 74 65 20 66 6f 72 20 61 6c 6c 20 6e 6f 6e 6f 76 65 72 6c 61 70 70 69 6e 67 0a 20 20 20 20 20 20 ┆te for all nonoverlapping ┆ 0x15a0…15c0 20 20 20 20 20 20 20 20 20 69 6e 73 74 61 6e 63 65 73 20 6f 66 20 74 68 65 20 5f 08 72 5f 08 65 ┆ instances of the _ r_ e┆ 0x15c0…15e0 5f 08 67 5f 08 75 5f 08 6c 5f 08 61 5f 08 72 20 5f 08 65 5f 08 78 5f 08 70 5f 08 72 5f 08 65 5f ┆_ g_ u_ l_ a_ r _ e_ x_ p_ r_ e_┆ 0x15e0…1600 08 73 5f 08 73 5f 08 69 5f 08 6f 5f 08 6e 20 72 61 74 68 65 72 20 74 68 61 6e 0a 20 20 20 20 20 ┆ s_ s_ i_ o_ n rather than ┆ 0x1600…1620 20 20 20 20 20 20 20 20 20 20 6a 75 73 74 20 74 68 65 20 66 69 72 73 74 20 6f 6e 65 2e 0a 0a 20 ┆ just the first one. ┆ 0x1620…1640 20 20 20 20 20 20 20 20 20 70 20 20 20 20 50 72 69 6e 74 20 74 68 65 20 70 61 74 74 65 72 6e 20 ┆ p Print the pattern ┆ 0x1640…1660 73 70 61 63 65 20 69 66 20 61 20 72 65 70 6c 61 63 65 6d 65 6e 74 20 77 61 73 20 6d 61 64 65 2e ┆space if a replacement was made.┆ 0x1660…1680 0a 0a 20 20 20 20 20 20 20 20 20 20 77 20 5f 08 77 5f 08 66 5f 08 69 5f 08 6c 5f 08 65 0a 20 20 ┆ w _ w_ f_ i_ l_ e ┆ 0x1680…16a0 20 20 20 20 20 20 20 20 20 20 20 20 20 57 72 69 74 65 2e 20 20 41 70 70 65 6e 64 20 74 68 65 20 ┆ Write. Append the ┆ 0x16a0…16c0 70 61 74 74 65 72 6e 20 73 70 61 63 65 20 74 6f 20 5f 08 77 5f 08 66 5f 08 69 5f 08 6c 5f 08 65 ┆pattern space to _ w_ f_ i_ l_ e┆ 0x16c0…16e0 20 69 66 20 61 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 70 6c 61 63 65 6d 65 6e 74 ┆ if a replacement┆ 0x16e0…1700 20 77 61 73 20 6d 61 64 65 2e 0a 0a 20 20 20 20 20 28 32 29 74 20 5f 08 6c 5f 08 61 5f 08 62 5f ┆ was made. (2)t _ l_ a_ b_┆ 0x1700…1720 08 65 5f 08 6c 0a 20 20 20 20 20 20 20 20 20 20 54 65 73 74 2e 20 20 42 72 61 6e 63 68 20 74 6f ┆ e_ l Test. Branch to┆ 0x1720…1740 20 74 68 65 20 60 3a 27 20 63 6f 6d 6d 61 6e 64 20 62 65 61 72 69 6e 67 20 74 68 65 20 5f 08 6c ┆ the `:' command bearing the _ l┆ 0x1740…1760 5f 08 61 5f 08 62 5f 08 65 5f 08 6c 20 69 66 0a 20 20 20 20 20 20 20 20 20 20 61 6e 79 20 73 75 ┆_ a_ b_ e_ l if any su┆ 0x1760…1780 62 73 74 69 74 75 74 69 6f 6e 73 20 68 61 76 65 20 62 65 65 6e 20 6d 61 64 65 20 73 69 6e 63 65 ┆bstitutions have been made since┆ 0x1780…17a0 20 74 68 65 20 6d 6f 73 74 20 72 65 63 65 6e 74 0a 20 20 20 20 20 20 20 20 20 20 72 65 61 64 69 ┆ the most recent readi┆ 0x17a0…17c0 6e 67 20 6f 66 20 61 6e 20 69 6e 70 75 74 20 6c 69 6e 65 20 6f 72 20 65 78 65 63 75 74 69 6f 6e ┆ng of an input line or execution┆ 0x17c0…17e0 20 6f 66 20 61 20 60 74 27 2e 20 20 49 66 0a 20 20 20 20 20 20 20 20 20 20 5f 08 6c 5f 08 61 5f ┆ of a `t'. If _ l_ a_┆ 0x17e0…1800 08 62 5f 08 65 5f 08 6c 20 69 73 20 65 6d 70 74 79 2c 20 62 72 61 6e 63 68 20 74 6f 20 74 68 65 ┆ b_ e_ l is empty, branch to the┆ 0x1800…1820 20 65 6e 64 20 6f 66 20 74 68 65 20 73 63 72 69 70 74 2e 0a 0a 20 20 20 20 20 28 32 29 77 20 5f ┆ end of the script. (2)w _┆ 0x1820…1840 08 77 5f 08 66 5f 08 69 5f 08 6c 5f 08 65 0a 20 20 20 20 20 20 20 20 20 20 57 72 69 74 65 2e 20 ┆ w_ f_ i_ l_ e Write. ┆ 0x1840…1860 20 41 70 70 65 6e 64 20 74 68 65 20 70 61 74 74 65 72 6e 20 73 70 61 63 65 20 74 6f 20 5f 08 77 ┆ Append the pattern space to _ w┆ 0x1860…1880 5f 08 66 5f 08 69 5f 08 6c 5f 08 65 2e 0a 0a 20 20 20 20 20 28 32 29 78 20 45 78 63 68 61 6e 67 ┆_ f_ i_ l_ e. (2)x Exchang┆ 0x1880…18a0 65 20 74 68 65 20 63 6f 6e 74 65 6e 74 73 20 6f 66 20 74 68 65 20 70 61 74 74 65 72 6e 20 61 6e ┆e the contents of the pattern an┆ 0x18a0…18c0 64 20 68 6f 6c 64 20 73 70 61 63 65 73 2e 0a 0a 20 20 20 20 20 28 32 29 79 2f 5f 08 73 5f 08 74 ┆d hold spaces. (2)y/_ s_ t┆ 0x18c0…18e0 5f 08 72 5f 08 69 5f 08 6e 5f 08 67 5f 08 31 2f 5f 08 73 5f 08 74 5f 08 72 5f 08 69 5f 08 6e 5f ┆_ r_ i_ n_ g_ 1/_ s_ t_ r_ i_ n_┆ 0x18e0…1900 08 67 5f 08 32 2f 0a 20 20 20 20 20 20 20 20 20 20 54 72 61 6e 73 66 6f 72 6d 2e 20 20 52 65 70 ┆ g_ 2/ Transform. Rep┆ 0x1900…1920 6c 61 63 65 20 61 6c 6c 20 6f 63 63 75 72 72 65 6e 63 65 73 20 6f 66 20 63 68 61 72 61 63 74 65 ┆lace all occurrences of characte┆ […truncated at 200 lines…]