Debian Codegraph @

tests/reference.sed

raw
1 # Addresses
2 11 p
3 21,22 p
4 31~32 p
5 41,~42 p
6 51,+52 p
7 $ p
8 /regex-without-flags/ p
9 /regex-with-flags/IM p
10 // p
11
12 # Bang to invert addresses
13 $ ! p
14
15 # Commands with no arguments
16 =
17 b
18 d
19 D
20 F
21 g
22 G
23 h
24 H
25 l
26 L
27 n
28 N
29 p
30 P
31 q
32 Q
33 t
34 T
35 x
36 z
37
38 # Commands with numeric argument
39 q 1
40 Q 22
41 l 333
42 L 4444
43
44 # Commands with labels
45 : label
46 b label_b
47 t label_t
48 T label_T
49
50 # Command v (label-like)
51 v 4.2
52
53 # Commands with files
54 r file_r
55 R file_R
56 w file_w
57 W file_W
58
59 # Commands with text
60 a text_a
61 i\
62 text_i
63 c\
64 text_c1 \
65 text_c2
66
67 # Command e (text-like)
68 e date
69
70 # Command y
71 y/abc/123/
72 y@abc@123@
73
74 # Command s
75 s///
76 s|||3
77 s/patt/repl/gipw filew
78
79 # Blocks
80 $ {
81 p
82 }