From: Colin Watson Date: Tue, 10 Sep 2002 10:28:02 +0000 (+0000) Subject: Minor tweaks. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=3f5411d8579463cfb3e89c2aef032aa1bb0dbe3a;p=bin.git Minor tweaks. --- 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"; }'