Skip to content
fcorbelli edited this page Sep 28, 2026 · 2 revisions

How many "all OK" in the logs? You expected 3.

Quick summary

count counts strings inside files (just like grep), and checks the number against the expected one.

Power user usage

Parameters: the files (wildcards allowed), the expected count, the string (optional).

Lo spiegone

Dispatched as command [ to count().

Real-world examples

I expect 3 "all OK" in the logfiles

zpaqfranz count z:\*.txt 3 "all OK"

I expect 10 (default string)

zpaqfranz count z:\*.txt 10

Clone this wiki locally