1 |
pcregrep version 4.1 05-Sep-2005 using PCRE version 6.4 05-Sep-2005
|
2 |
---------------------------- Test 1 ------------------------------
|
3 |
PATTERN at the start of a line.
|
4 |
In the middle of a line, PATTERN appears.
|
5 |
Check up on PATTERN near the end.
|
6 |
---------------------------- Test 2 ------------------------------
|
7 |
PATTERN at the start of a line.
|
8 |
---------------------------- Test 3 ------------------------------
|
9 |
7:PATTERN at the start of a line.
|
10 |
8:In the middle of a line, PATTERN appears.
|
11 |
10:This pattern is in lower case.
|
12 |
586:Check up on PATTERN near the end.
|
13 |
---------------------------- Test 4 ------------------------------
|
14 |
4
|
15 |
---------------------------- Test 5 ------------------------------
|
16 |
./testdata/grepinput:7:PATTERN at the start of a line.
|
17 |
./testdata/grepinput:8:In the middle of a line, PATTERN appears.
|
18 |
./testdata/grepinput:10:This pattern is in lower case.
|
19 |
./testdata/grepinput:586:Check up on PATTERN near the end.
|
20 |
./testdata/grepinputx:3:Here is the pattern again.
|
21 |
./testdata/grepinputx:5:Pattern
|
22 |
---------------------------- Test 6 ------------------------------
|
23 |
7:PATTERN at the start of a line.
|
24 |
8:In the middle of a line, PATTERN appears.
|
25 |
10:This pattern is in lower case.
|
26 |
586:Check up on PATTERN near the end.
|
27 |
3:Here is the pattern again.
|
28 |
5:Pattern
|
29 |
---------------------------- Test 7 ------------------------------
|
30 |
./testdata/grepinput
|
31 |
./testdata/grepinputx
|
32 |
---------------------------- Test 8 ------------------------------
|
33 |
./testdata/grepinput
|
34 |
---------------------------- Test 9 ------------------------------
|
35 |
RC=0
|
36 |
---------------------------- Test 10 -----------------------------
|
37 |
RC=1
|
38 |
---------------------------- Test 11 -----------------------------
|
39 |
1:This is a second file of input for the pcregrep tests.
|
40 |
2:
|
41 |
4:
|
42 |
5:Pattern
|
43 |
6:That time it was on a line by itself.
|
44 |
7:
|
45 |
8:To pat or not to pat, that is the question.
|
46 |
9:
|
47 |
10:complete pair
|
48 |
11:of lines
|
49 |
12:
|
50 |
13:That was a complete pair
|
51 |
14:of lines all by themselves.
|
52 |
15:
|
53 |
16:complete pair
|
54 |
17:of lines
|
55 |
18:
|
56 |
19:And there they were again, to check line numbers.
|
57 |
20:
|
58 |
21:one
|
59 |
22:two
|
60 |
23:three
|
61 |
24:four
|
62 |
25:five
|
63 |
26:six
|
64 |
27:seven
|
65 |
28:eight
|
66 |
29:nine
|
67 |
30:ten
|
68 |
31:eleven
|
69 |
32:twelve
|
70 |
33:thirteen
|
71 |
34:fourteen
|
72 |
35:fifteen
|
73 |
36:sixteen
|
74 |
37:seventeen
|
75 |
38:eighteen
|
76 |
39:nineteen
|
77 |
40:twenty
|
78 |
41:
|
79 |
42:This is the last line of this file.
|
80 |
---------------------------- Test 12 -----------------------------
|
81 |
Pattern
|
82 |
---------------------------- Test 13 -----------------------------
|
83 |
Here is the pattern again.
|
84 |
That time it was on a line by itself.
|
85 |
---------------------------- Test 14 -----------------------------
|
86 |
./testdata/grepinputx:To pat or not to pat, that is the question.
|
87 |
---------------------------- Test 15 -----------------------------
|
88 |
pcregrep: Error in regex at offset 4: nothing to repeat
|
89 |
---------------------------- Test 16 -----------------------------
|
90 |
pcregrep: Failed to open ./testdata/nonexistfile: No such file or directory
|
91 |
---------------------------- Test 17 -----------------------------
|
92 |
features should be added at the end, because some of the tests involve the
|
93 |
output of line numbers, and we don't want these to change.
|
94 |
---------------------------- Test 18 -----------------------------
|
95 |
4:features should be added at the end, because some of the tests involve the
|
96 |
output of line numbers, and we don't want these to change.
|
97 |
583:brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.
|
98 |
-------------------------------------------------------------------------------
|
99 |
---------------------------- Test 19 -----------------------------
|
100 |
Pattern
|
101 |
---------------------------- Test 20 -----------------------------
|
102 |
10:complete pair
|
103 |
of lines
|
104 |
16:complete pair
|
105 |
of lines
|
106 |
---------------------------- Test 21 -----------------------------
|
107 |
24:four
|
108 |
25-five
|
109 |
26-six
|
110 |
27-seven
|
111 |
--
|
112 |
34:fourteen
|
113 |
35-fifteen
|
114 |
36-sixteen
|
115 |
37-seventeen
|
116 |
---------------------------- Test 22 -----------------------------
|
117 |
20-one
|
118 |
21-two
|
119 |
22-three
|
120 |
24:four
|
121 |
--
|
122 |
30-eleven
|
123 |
31-twelve
|
124 |
32-thirteen
|
125 |
34:fourteen
|
126 |
---------------------------- Test 23 -----------------------------
|
127 |
one
|
128 |
two
|
129 |
three
|
130 |
four
|
131 |
five
|
132 |
six
|
133 |
seven
|
134 |
--
|
135 |
eleven
|
136 |
twelve
|
137 |
thirteen
|
138 |
fourteen
|
139 |
fifteen
|
140 |
sixteen
|
141 |
seventeen
|
142 |
---------------------------- Test 24 -----------------------------
|
143 |
four
|
144 |
five
|
145 |
six
|
146 |
seven
|
147 |
eight
|
148 |
nine
|
149 |
ten
|
150 |
eleven
|
151 |
twelve
|
152 |
thirteen
|
153 |
fourteen
|
154 |
fifteen
|
155 |
sixteen
|
156 |
seventeen
|
157 |
eighteen
|
158 |
nineteen
|
159 |
twenty
|
160 |
|
161 |
This is the last line of this file.
|
162 |
---------------------------- Test 25 -----------------------------
|
163 |
14-
|
164 |
15-complete pair
|
165 |
16-of lines
|
166 |
17-
|
167 |
18-And there they were again, to check line numbers.
|
168 |
19-
|
169 |
20-one
|
170 |
21-two
|
171 |
22-three
|
172 |
24:four
|
173 |
25-five
|
174 |
26-six
|
175 |
27-seven
|
176 |
28-eight
|
177 |
29-nine
|
178 |
30-ten
|
179 |
31-eleven
|
180 |
32-twelve
|
181 |
33-thirteen
|
182 |
34:fourteen
|
183 |
---------------------------- Test 26 -----------------------------
|
184 |
|
185 |
complete pair
|
186 |
of lines
|
187 |
|
188 |
And there they were again, to check line numbers.
|
189 |
|
190 |
one
|
191 |
two
|
192 |
three
|
193 |
four
|
194 |
five
|
195 |
six
|
196 |
seven
|
197 |
eight
|
198 |
nine
|
199 |
ten
|
200 |
eleven
|
201 |
twelve
|
202 |
thirteen
|
203 |
fourteen
|
204 |
fifteen
|
205 |
sixteen
|
206 |
seventeen
|
207 |
eighteen
|
208 |
nineteen
|
209 |
twenty
|
210 |
|
211 |
This is the last line of this file.
|
212 |
---------------------------- Test 27 -----------------------------
|
213 |
four
|
214 |
five
|
215 |
six
|
216 |
seven
|
217 |
eight
|
218 |
nine
|
219 |
ten
|
220 |
eleven
|
221 |
twelve
|
222 |
thirteen
|
223 |
fourteen
|
224 |
fifteen
|
225 |
sixteen
|
226 |
seventeen
|
227 |
eighteen
|
228 |
nineteen
|
229 |
twenty
|
230 |
|
231 |
This is the last line of this file.
|
232 |
---------------------------- Test 28 -----------------------------
|
233 |
13-of lines all by themselves.
|
234 |
14-
|
235 |
15-complete pair
|
236 |
16-of lines
|
237 |
17-
|
238 |
18-And there they were again, to check line numbers.
|
239 |
19-
|
240 |
20-one
|
241 |
21-two
|
242 |
22-three
|
243 |
24:four
|
244 |
25-five
|
245 |
26-six
|
246 |
27-seven
|
247 |
28-eight
|
248 |
29-nine
|
249 |
30-ten
|
250 |
31-eleven
|
251 |
32-twelve
|
252 |
33-thirteen
|
253 |
34:fourteen
|
254 |
---------------------------- Test 29 -----------------------------
|
255 |
of lines all by themselves.
|
256 |
|
257 |
complete pair
|
258 |
of lines
|
259 |
|
260 |
And there they were again, to check line numbers.
|
261 |
|
262 |
one
|
263 |
two
|
264 |
three
|
265 |
four
|
266 |
five
|
267 |
six
|
268 |
seven
|
269 |
eight
|
270 |
nine
|
271 |
ten
|
272 |
eleven
|
273 |
twelve
|
274 |
thirteen
|
275 |
fourteen
|
276 |
fifteen
|
277 |
sixteen
|
278 |
seventeen
|
279 |
eighteen
|
280 |
nineteen
|
281 |
twenty
|
282 |
|
283 |
This is the last line of this file.
|
284 |
---------------------------- Test 30 -----------------------------
|
285 |
./testdata/grepinput-3-features should be added at the end, because some of the tests involve the
|
286 |
./testdata/grepinput-4-output of line numbers, and we don't want these to change.
|
287 |
./testdata/grepinput-5-
|
288 |
./testdata/grepinput:7:PATTERN at the start of a line.
|
289 |
./testdata/grepinput:8:In the middle of a line, PATTERN appears.
|
290 |
./testdata/grepinput-9-
|
291 |
./testdata/grepinput:10:This pattern is in lower case.
|
292 |
--
|
293 |
./testdata/grepinput-582-brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.
|
294 |
./testdata/grepinput-583--------------------------------------------------------------------------------
|
295 |
./testdata/grepinput-584-
|
296 |
./testdata/grepinput:586:Check up on PATTERN near the end.
|
297 |
--
|
298 |
./testdata/grepinputx-1-This is a second file of input for the pcregrep tests.
|
299 |
./testdata/grepinputx-2-
|
300 |
./testdata/grepinputx:3:Here is the pattern again.
|
301 |
./testdata/grepinputx-4-
|
302 |
./testdata/grepinputx:5:Pattern
|
303 |
---------------------------- Test 31 -----------------------------
|
304 |
./testdata/grepinput:7:PATTERN at the start of a line.
|
305 |
./testdata/grepinput:8:In the middle of a line, PATTERN appears.
|
306 |
./testdata/grepinput-9-
|
307 |
./testdata/grepinput:10:This pattern is in lower case.
|
308 |
./testdata/grepinput-11-
|
309 |
./testdata/grepinput-12-Here follows a whole lot of stuff that makes the file over 24K long.
|
310 |
./testdata/grepinput-13-
|
311 |
--
|
312 |
./testdata/grepinput:586:Check up on PATTERN near the end.
|
313 |
./testdata/grepinput-587-
|
314 |
./testdata/grepinput-588-This is the last line of this file.
|
315 |
--
|
316 |
./testdata/grepinputx:3:Here is the pattern again.
|
317 |
./testdata/grepinputx-4-
|
318 |
./testdata/grepinputx:5:Pattern
|
319 |
./testdata/grepinputx-6-That time it was on a line by itself.
|
320 |
./testdata/grepinputx-7-
|
321 |
./testdata/grepinputx-8-To pat or not to pat, that is the question.
|
322 |
---------------------------- Test 32 -----------------------------
|
323 |
./testdata/grepinputx
|
324 |
---------------------------- Test 33 -----------------------------
|
325 |
pcregrep: Failed to open ./testdata/grepnonexist: No such file or directory
|
326 |
RC=2
|
327 |
---------------------------- Test 34 -----------------------------
|
328 |
RC=2
|
329 |
---------------------------- Test 35 -----------------------------
|
330 |
./testdata/grepinputx
|
331 |
RC=0
|
332 |
---------------------------- Test 36 -----------------------------
|
333 |
./testdata/grepinputx
|
334 |
RC=0
|