From 17fe13a95feccd83c4900be1f603618d22f980ae Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Sat, 16 May 2020 21:31:12 +0200 Subject: add contrib/mcount, a tool to count mails (possibly between pipes) --- contrib/mcount | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 contrib/mcount diff --git a/contrib/mcount b/contrib/mcount new file mode 100755 index 0000000..a6d1d5f --- /dev/null +++ b/contrib/mcount @@ -0,0 +1,10 @@ +#!/bin/sh +# mcount - count mails from sequence on stdin + +[ -t 1 ] && stdout=1 + +awk -v stdout=$stdout ' + !/^ * "/dev/stderr" } +' -- cgit 1.4.1