]>
git.sthu.org Git - pgp-tools.git/blob - keyanalyze/analyze.sh
2 # usage ./analyze.sh path/to/pubring.pgp
6 # comment these next lines out if you are working with an existing
9 |
grep "\(pub\|sig\|rev\|uid\)" \
10 |
sed -e "s/^\([a-z]*\).*:\([0-9A-F]\{16\}\):.*/\1 \2/g" \
11 -e "s/^uid:.*/uid/" > all.keys
12 cat all.keys | process_keys
$2 > preprocess.keys
14 # the actual processing of the main report
17 # html beautification and reports and such
18 # comment this out if you don't want all the stuff in the report
19 # at http://dtype.org/keyanalyze/
20 cat output
/msd.txt |
sort -n -k 3 |
nl -s ' ' > output
/msd-sorted.txt
21 head -n 50 output
/msd-sorted.txt |
scripts
/top50.pl
> output
/top50table.html
22 cat scripts
/report_top.php output
/top50table.html \
23 scripts
/report_bottom.php
> output
/report.php
24 head -n 1000 output
/msd-sorted.txt |
scripts
/top50.pl
> output
/top1000table.html
25 cat scripts
/1000_top.php output
/top1000table.html \
26 scripts
/1000_bottom.php
> output
/report_1000.php