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