diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-09-04 00:36:32 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-09-04 00:36:32 +0800 |
commit | fc5bd5742759eea401ffa112d696a3fe028675d1 (patch) | |
tree | 1092d20a4735c2afca91f82d45f988335c5287c9 | |
parent | dcf78b3ca3ff11ff35ec376bfc3fbff6923e154e (diff) | |
download | pttbbs-fc5bd5742759eea401ffa112d696a3fe028675d1.tar pttbbs-fc5bd5742759eea401ffa112d696a3fe028675d1.tar.gz pttbbs-fc5bd5742759eea401ffa112d696a3fe028675d1.tar.bz2 pttbbs-fc5bd5742759eea401ffa112d696a3fe028675d1.tar.lz pttbbs-fc5bd5742759eea401ffa112d696a3fe028675d1.tar.xz pttbbs-fc5bd5742759eea401ffa112d696a3fe028675d1.tar.zst pttbbs-fc5bd5742759eea401ffa112d696a3fe028675d1.zip |
better output
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2178 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | util/cleandir.pl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/util/cleandir.pl b/util/cleandir.pl index 0e1d5b3a..606e3b4b 100644 --- a/util/cleandir.pl +++ b/util/cleandir.pl @@ -4,12 +4,13 @@ use strict; use lib '/home/bbs/bin/'; use BBSFileHeader; -my($nDels, $prefix) = (); -$nDels = 0; +my($nDels, $old, $prefix) = (); +$old = $nDels = 0; foreach( @ARGV ){ print "cleaning: $_\n"; cleandir($_); - print "\n"; + print ("\t".($nDels - $old). " files deleted\n"); + $old = $nDels; } print "$nDels files deleted\n"; |