aboutsummaryrefslogtreecommitdiff
path: root/testsuite/sed/sed-aic-commands
blob: b41c14ab8de4669ec3bb8065365c0d4fe7651fc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
cat - >input <<EOF
2i\\
before 2
5c\\
Change 5
10a\\
After 10
22i\\
before 22\\
Continued
25c\\
Change 25\\
Continued
20a\\
After 20\\
Continued
  	  32i\\
before 32\\
Continued 1\\
Continued 2\\
Continued 3
  	  35c\\
Change 35\\
Continued 1\\
Continued 2\\
Continued 3
	30a\\
After 30\\
Continued 1\\
Continued 2\\
Continued 3
EOF
busybox sed -f input >output <<EOF
     1	y
     2	y
     3	y
     4	y
     5	y
     6	y
     7	y
     8	y
     9	y
    10	y
    11	y
    12	y
    13	y
    14	y
    15	y
    16	y
    17	y
    18	y
    19	y
    20	y
    21	y
    22	y
    23	y
    24	y
    25	y
    26	y
    27	y
    28	y
    29	y
    30	y
    31	y
    32	y
    33	y
    34	y
    35	y
    36	y
    37	y
    38	y
    39	y
    40	y
EOF
cmp -s output - <<EOF
     1	y
before 2
     2	y
     3	y
     4	y
Change 5
     6	y
     7	y
     8	y
     9	y
    10	y
After 10
    11	y
    12	y
    13	y
    14	y
    15	y
    16	y
    17	y
    18	y
    19	y
    20	y
After 20
Continued
    21	y
before 22
Continued
    22	y
    23	y
    24	y
Change 25
Continued
    26	y
    27	y
    28	y
    29	y
    30	y
After 30
Continued 1
Continued 2
Continued 3
    31	y
before 32
Continued 1
Continued 2
Continued 3
    32	y
    33	y
    34	y
Change 35
Continued 1
Continued 2
Continued 3
    36	y
    37	y
    38	y
    39	y
    40	y
EOF