X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?p=bin.git;a=blobdiff_plain;f=build-sig;h=6230dcd0f77ced17c46804abb4db908cde9c691a;hp=3e46ad9ab5f9e70d84603876b7971fef440e790d;hb=cb40d23716de523fcfb585bc3d8dc84e5d790cbc;hpb=048aac6382a1cd35c048734907a51e3be5727e42 diff --git a/build-sig b/build-sig index 3e46ad9..6230dcd 100755 --- a/build-sig +++ b/build-sig @@ -1,8 +1,8 @@ -#!/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"; }'