summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/lhash/num.pl
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/lhash/num.pl')
-rw-r--r--src/lib/libcrypto/lhash/num.pl17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/lib/libcrypto/lhash/num.pl b/src/lib/libcrypto/lhash/num.pl
new file mode 100644
index 0000000000..30fedf9cd5
--- /dev/null
+++ b/src/lib/libcrypto/lhash/num.pl
@@ -0,0 +1,17 @@
1#!/usr/local/bin/perl
2
3#node 10 -> 4
4
5while (<>)
6 {
7 next unless /^node/;
8 chop;
9 @a=split;
10 $num{$a[3]}++;
11 }
12
13@a=sort {$a <=> $b } keys %num;
14foreach (0 .. $a[$#a])
15 {
16 printf "%4d:%4d\n",$_,$num{$_};
17 }