-#!/bin/sh
+#! /bin/sh
for s in $(find ~/.signatures -mindepth 2 -path '*/old/*' -prune -o \
-type f ! -name '*.dat' ! -name static -print | \
sort); do
- strfile $s
-done | perl -ne \
- '$s += $1 if /There.*?([0-9]+)/; print; END { print "Total: $s\n"; }'
+ strfile "$s"
+done | perl -pe \
+ '$s += $1 if /There.*?([0-9]+)/; END { print "Total: $s\n"; }'