Package: grep Version: 3.1-2 Severity: wishlist grep -c counts matching lines. I'd love to have an option that counts the number of matches, even if multiple matches occur per line.
This seems easy enough to do by leveraging the same code that -o uses, but counting rather than printing. -- System Information: Debian Release: buster/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 4.14.0-3-amd64 (SMP w/4 CPU cores) Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages grep depends on: ii dpkg 1.19.0.4 ii install-info 6.5.0.dfsg.1-1 ii libc6 2.26-2 ii libpcre3 2:8.39-8 grep recommends no packages. Versions of packages grep suggests: ii libpcre3 2:8.39-8 -- no debconf information