xref: /netbsd-src/external/bsd/tre/dist/tests/agrep/basic.ok (revision 63d4abf06d37aace2f9e41a494102a64fe3abddb)
1#### TEST: agrep  random basic.in
2Some random text here.
3
4Exit status 0.
5#### TEST: agrep  random < basic.in
6Some random text here.
7
8Exit status 0.
9#### TEST: agrep -c random basic.in
101
11
12Exit status 0.
13#### TEST: agrep -c random < basic.in
141
15
16Exit status 0.
17#### TEST: agrep -H random basic.in
18basic.in:Some random text here.
19
20Exit status 0.
21#### TEST: agrep -H random < basic.in
22(standard input):Some random text here.
23
24Exit status 0.
25#### TEST: agrep -l random basic.in
26basic.in
27
28Exit status 0.
29#### TEST: agrep -l random < basic.in
30(standard input)
31
32Exit status 0.
33#### TEST: agrep -n random basic.in
341:Some random text here.
35
36Exit status 0.
37#### TEST: agrep -n random < basic.in
381:Some random text here.
39
40Exit status 0.
41#### TEST: agrep -s random basic.in
420:Some random text here.
43
44Exit status 0.
45#### TEST: agrep -s random < basic.in
460:Some random text here.
47
48Exit status 0.
49#### TEST: agrep -M random basic.in
50Some random text here.
51
52Exit status 0.
53#### TEST: agrep -M random < basic.in
54Some random text here.
55
56Exit status 0.
57#### TEST: agrep --show-position random basic.in
585-11:Some random text here.
59
60Exit status 0.
61#### TEST: agrep --show-position random < basic.in
625-11:Some random text here.
63
64Exit status 0.
65#### TEST: agrep --color random basic.in
66Some random text here.
67
68Exit status 0.
69#### TEST: agrep --color random < basic.in
70Some random text here.
71
72Exit status 0.
73#### TEST: agrep -H -n -s --color --show-position random basic.in
74basic.in:1:0:5-11:Some random text here.
75
76Exit status 0.
77#### TEST: agrep -H -n -s --color --show-position random < basic.in
78(standard input):1:0:5-11:Some random text here.
79
80Exit status 0.
81#### TEST: agrep  -v random basic.in
82Foo bar quux.
83Let's hear an example of correct microphone placing.
84I suppose for something like that one would use a very large number of microphones.
85Extraordinary.
86Take California.
87A-ding-ing-ng-WROOOOM-ding-ding-boing!
88They are micro, mega, mini, mono, and multi.
89
90Exit status 0.
91#### TEST: agrep  -v random < basic.in
92Foo bar quux.
93Let's hear an example of correct microphone placing.
94I suppose for something like that one would use a very large number of microphones.
95Extraordinary.
96Take California.
97A-ding-ing-ng-WROOOOM-ding-ding-boing!
98They are micro, mega, mini, mono, and multi.
99
100Exit status 0.
101#### TEST: agrep -c -v random basic.in
1027
103
104Exit status 0.
105#### TEST: agrep -c -v random < basic.in
1067
107
108Exit status 0.
109#### TEST: agrep -H -v random basic.in
110basic.in:Foo bar quux.
111basic.in:Let's hear an example of correct microphone placing.
112basic.in:I suppose for something like that one would use a very large number of microphones.
113basic.in:Extraordinary.
114basic.in:Take California.
115basic.in:A-ding-ing-ng-WROOOOM-ding-ding-boing!
116basic.in:They are micro, mega, mini, mono, and multi.
117
118Exit status 0.
119#### TEST: agrep -H -v random < basic.in
120(standard input):Foo bar quux.
121(standard input):Let's hear an example of correct microphone placing.
122(standard input):I suppose for something like that one would use a very large number of microphones.
123(standard input):Extraordinary.
124(standard input):Take California.
125(standard input):A-ding-ing-ng-WROOOOM-ding-ding-boing!
126(standard input):They are micro, mega, mini, mono, and multi.
127
128Exit status 0.
129#### TEST: agrep -l -v random basic.in
130basic.in
131
132Exit status 0.
133#### TEST: agrep -l -v random < basic.in
134(standard input)
135
136Exit status 0.
137#### TEST: agrep -n -v random basic.in
1382:Foo bar quux.
1393:Let's hear an example of correct microphone placing.
1404:I suppose for something like that one would use a very large number of microphones.
1415:Extraordinary.
1426:Take California.
1437:A-ding-ing-ng-WROOOOM-ding-ding-boing!
1448:They are micro, mega, mini, mono, and multi.
145
146Exit status 0.
147#### TEST: agrep -n -v random < basic.in
1482:Foo bar quux.
1493:Let's hear an example of correct microphone placing.
1504:I suppose for something like that one would use a very large number of microphones.
1515:Extraordinary.
1526:Take California.
1537:A-ding-ing-ng-WROOOOM-ding-ding-boing!
1548:They are micro, mega, mini, mono, and multi.
155
156Exit status 0.
157#### TEST: agrep -s -v random basic.in
1580:Foo bar quux.
1590:Let's hear an example of correct microphone placing.
1600:I suppose for something like that one would use a very large number of microphones.
1610:Extraordinary.
1620:Take California.
1630:A-ding-ing-ng-WROOOOM-ding-ding-boing!
1640:They are micro, mega, mini, mono, and multi.
165
166Exit status 0.
167#### TEST: agrep -s -v random < basic.in
1680:Foo bar quux.
1690:Let's hear an example of correct microphone placing.
1700:I suppose for something like that one would use a very large number of microphones.
1710:Extraordinary.
1720:Take California.
1730:A-ding-ing-ng-WROOOOM-ding-ding-boing!
1740:They are micro, mega, mini, mono, and multi.
175
176Exit status 0.
177#### TEST: agrep -M -v random basic.in
178Foo bar quux.
179Let's hear an example of correct microphone placing.
180I suppose for something like that one would use a very large number of microphones.
181Extraordinary.
182Take California.
183A-ding-ing-ng-WROOOOM-ding-ding-boing!
184They are micro, mega, mini, mono, and multi.
185
186Exit status 0.
187#### TEST: agrep -M -v random < basic.in
188Foo bar quux.
189Let's hear an example of correct microphone placing.
190I suppose for something like that one would use a very large number of microphones.
191Extraordinary.
192Take California.
193A-ding-ing-ng-WROOOOM-ding-ding-boing!
194They are micro, mega, mini, mono, and multi.
195
196Exit status 0.
197#### TEST: agrep --show-position -v random basic.in
1980-13:Foo bar quux.
1990-52:Let's hear an example of correct microphone placing.
2000-83:I suppose for something like that one would use a very large number of microphones.
2010-14:Extraordinary.
2020-16:Take California.
2030-38:A-ding-ing-ng-WROOOOM-ding-ding-boing!
2040-44:They are micro, mega, mini, mono, and multi.
205
206Exit status 0.
207#### TEST: agrep --show-position -v random < basic.in
2080-13:Foo bar quux.
2090-52:Let's hear an example of correct microphone placing.
2100-83:I suppose for something like that one would use a very large number of microphones.
2110-14:Extraordinary.
2120-16:Take California.
2130-38:A-ding-ing-ng-WROOOOM-ding-ding-boing!
2140-44:They are micro, mega, mini, mono, and multi.
215
216Exit status 0.
217#### TEST: agrep --color -v random basic.in
218Foo bar quux.
219Let's hear an example of correct microphone placing.
220I suppose for something like that one would use a very large number of microphones.
221Extraordinary.
222Take California.
223A-ding-ing-ng-WROOOOM-ding-ding-boing!
224They are micro, mega, mini, mono, and multi.
225
226Exit status 0.
227#### TEST: agrep --color -v random < basic.in
228Foo bar quux.
229Let's hear an example of correct microphone placing.
230I suppose for something like that one would use a very large number of microphones.
231Extraordinary.
232Take California.
233A-ding-ing-ng-WROOOOM-ding-ding-boing!
234They are micro, mega, mini, mono, and multi.
235
236Exit status 0.
237#### TEST: agrep -H -n -s --color --show-position -v random basic.in
238basic.in:2:0:0-13:Foo bar quux.
239basic.in:3:0:0-52:Let's hear an example of correct microphone placing.
240basic.in:4:0:0-83:I suppose for something like that one would use a very large number of microphones.
241basic.in:5:0:0-14:Extraordinary.
242basic.in:6:0:0-16:Take California.
243basic.in:7:0:0-38:A-ding-ing-ng-WROOOOM-ding-ding-boing!
244basic.in:8:0:0-44:They are micro, mega, mini, mono, and multi.
245
246Exit status 0.
247#### TEST: agrep -H -n -s --color --show-position -v random < basic.in
248(standard input):2:0:0-13:Foo bar quux.
249(standard input):3:0:0-52:Let's hear an example of correct microphone placing.
250(standard input):4:0:0-83:I suppose for something like that one would use a very large number of microphones.
251(standard input):5:0:0-14:Extraordinary.
252(standard input):6:0:0-16:Take California.
253(standard input):7:0:0-38:A-ding-ing-ng-WROOOOM-ding-ding-boing!
254(standard input):8:0:0-44:They are micro, mega, mini, mono, and multi.
255
256Exit status 0.
257#### TEST: agrep  -i extra basic.in
258Extraordinary.
259
260Exit status 0.
261#### TEST: agrep  -i extra < basic.in
262Extraordinary.
263
264Exit status 0.
265#### TEST: agrep -c -i extra basic.in
2661
267
268Exit status 0.
269#### TEST: agrep -c -i extra < basic.in
2701
271
272Exit status 0.
273#### TEST: agrep -H -i extra basic.in
274basic.in:Extraordinary.
275
276Exit status 0.
277#### TEST: agrep -H -i extra < basic.in
278(standard input):Extraordinary.
279
280Exit status 0.
281#### TEST: agrep -l -i extra basic.in
282basic.in
283
284Exit status 0.
285#### TEST: agrep -l -i extra < basic.in
286(standard input)
287
288Exit status 0.
289#### TEST: agrep -n -i extra basic.in
2905:Extraordinary.
291
292Exit status 0.
293#### TEST: agrep -n -i extra < basic.in
2945:Extraordinary.
295
296Exit status 0.
297#### TEST: agrep -s -i extra basic.in
2980:Extraordinary.
299
300Exit status 0.
301#### TEST: agrep -s -i extra < basic.in
3020:Extraordinary.
303
304Exit status 0.
305#### TEST: agrep -M -i extra basic.in
306Extraordinary.
307
308Exit status 0.
309#### TEST: agrep -M -i extra < basic.in
310Extraordinary.
311
312Exit status 0.
313#### TEST: agrep --show-position -i extra basic.in
3140-5:Extraordinary.
315
316Exit status 0.
317#### TEST: agrep --show-position -i extra < basic.in
3180-5:Extraordinary.
319
320Exit status 0.
321#### TEST: agrep --color -i extra basic.in
322Extraordinary.
323
324Exit status 0.
325#### TEST: agrep --color -i extra < basic.in
326Extraordinary.
327
328Exit status 0.
329#### TEST: agrep -H -n -s --color --show-position -i extra basic.in
330basic.in:5:0:0-5:Extraordinary.
331
332Exit status 0.
333#### TEST: agrep -H -n -s --color --show-position -i extra < basic.in
334(standard input):5:0:0-5:Extraordinary.
335
336Exit status 0.
337#### TEST: agrep  -e -ding basic.in
338A-ding-ing-ng-WROOOOM-ding-ding-boing!
339
340Exit status 0.
341#### TEST: agrep  -e -ding < basic.in
342A-ding-ing-ng-WROOOOM-ding-ding-boing!
343
344Exit status 0.
345#### TEST: agrep -c -e -ding basic.in
3461
347
348Exit status 0.
349#### TEST: agrep -c -e -ding < basic.in
3501
351
352Exit status 0.
353#### TEST: agrep -H -e -ding basic.in
354basic.in:A-ding-ing-ng-WROOOOM-ding-ding-boing!
355
356Exit status 0.
357#### TEST: agrep -H -e -ding < basic.in
358(standard input):A-ding-ing-ng-WROOOOM-ding-ding-boing!
359
360Exit status 0.
361#### TEST: agrep -l -e -ding basic.in
362basic.in
363
364Exit status 0.
365#### TEST: agrep -l -e -ding < basic.in
366(standard input)
367
368Exit status 0.
369#### TEST: agrep -n -e -ding basic.in
3707:A-ding-ing-ng-WROOOOM-ding-ding-boing!
371
372Exit status 0.
373#### TEST: agrep -n -e -ding < basic.in
3747:A-ding-ing-ng-WROOOOM-ding-ding-boing!
375
376Exit status 0.
377#### TEST: agrep -s -e -ding basic.in
3780:A-ding-ing-ng-WROOOOM-ding-ding-boing!
379
380Exit status 0.
381#### TEST: agrep -s -e -ding < basic.in
3820:A-ding-ing-ng-WROOOOM-ding-ding-boing!
383
384Exit status 0.
385#### TEST: agrep -M -e -ding basic.in
386A-ding-ing-ng-WROOOOM-ding-ding-boing!
387
388Exit status 0.
389#### TEST: agrep -M -e -ding < basic.in
390A-ding-ing-ng-WROOOOM-ding-ding-boing!
391
392Exit status 0.
393#### TEST: agrep --show-position -e -ding basic.in
3941-6:A-ding-ing-ng-WROOOOM-ding-ding-boing!
395
396Exit status 0.
397#### TEST: agrep --show-position -e -ding < basic.in
3981-6:A-ding-ing-ng-WROOOOM-ding-ding-boing!
399
400Exit status 0.
401#### TEST: agrep --color -e -ding basic.in
402A-ding-ing-ng-WROOOOM-ding-ding-boing!
403
404Exit status 0.
405#### TEST: agrep --color -e -ding < basic.in
406A-ding-ing-ng-WROOOOM-ding-ding-boing!
407
408Exit status 0.
409#### TEST: agrep -H -n -s --color --show-position -e -ding basic.in
410basic.in:7:0:1-6:A-ding-ing-ng-WROOOOM-ding-ding-boing!
411
412Exit status 0.
413#### TEST: agrep -H -n -s --color --show-position -e -ding < basic.in
414(standard input):7:0:1-6:A-ding-ing-ng-WROOOOM-ding-ding-boing!
415
416Exit status 0.
417#### TEST: agrep  -w micro basic.in
418They are micro, mega, mini, mono, and multi.
419
420Exit status 0.
421#### TEST: agrep  -w micro < basic.in
422They are micro, mega, mini, mono, and multi.
423
424Exit status 0.
425#### TEST: agrep -c -w micro basic.in
4261
427
428Exit status 0.
429#### TEST: agrep -c -w micro < basic.in
4301
431
432Exit status 0.
433#### TEST: agrep -H -w micro basic.in
434basic.in:They are micro, mega, mini, mono, and multi.
435
436Exit status 0.
437#### TEST: agrep -H -w micro < basic.in
438(standard input):They are micro, mega, mini, mono, and multi.
439
440Exit status 0.
441#### TEST: agrep -l -w micro basic.in
442basic.in
443
444Exit status 0.
445#### TEST: agrep -l -w micro < basic.in
446(standard input)
447
448Exit status 0.
449#### TEST: agrep -n -w micro basic.in
4508:They are micro, mega, mini, mono, and multi.
451
452Exit status 0.
453#### TEST: agrep -n -w micro < basic.in
4548:They are micro, mega, mini, mono, and multi.
455
456Exit status 0.
457#### TEST: agrep -s -w micro basic.in
4580:They are micro, mega, mini, mono, and multi.
459
460Exit status 0.
461#### TEST: agrep -s -w micro < basic.in
4620:They are micro, mega, mini, mono, and multi.
463
464Exit status 0.
465#### TEST: agrep -M -w micro basic.in
466They are micro, mega, mini, mono, and multi.
467
468Exit status 0.
469#### TEST: agrep -M -w micro < basic.in
470They are micro, mega, mini, mono, and multi.
471
472Exit status 0.
473#### TEST: agrep --show-position -w micro basic.in
4749-14:They are micro, mega, mini, mono, and multi.
475
476Exit status 0.
477#### TEST: agrep --show-position -w micro < basic.in
4789-14:They are micro, mega, mini, mono, and multi.
479
480Exit status 0.
481#### TEST: agrep --color -w micro basic.in
482They are micro, mega, mini, mono, and multi.
483
484Exit status 0.
485#### TEST: agrep --color -w micro < basic.in
486They are micro, mega, mini, mono, and multi.
487
488Exit status 0.
489#### TEST: agrep -H -n -s --color --show-position -w micro basic.in
490basic.in:8:0:9-14:They are micro, mega, mini, mono, and multi.
491
492Exit status 0.
493#### TEST: agrep -H -n -s --color --show-position -w micro < basic.in
494(standard input):8:0:9-14:They are micro, mega, mini, mono, and multi.
495
496Exit status 0.
497