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