Fixed both analyze.sh and top50.pl scripts.
[pgp-tools.git] / keyanalyze / analyze.sh
index 65bc57750973a5d44935d58c92f77ba11da62d6a..ae1d90dbcf477e6a36f28e85c23f3b932b8adee8 100755 (executable)
@@ -13,10 +13,10 @@ keyanalyze
 # html beautification and reports and such
 # comment this out if you don't want all the stuff in the report
 # at http://dtype.org/keyanalyze/
-cat output/msd.txt | sort -n -k 3 | nl -s ' ' > output/msd-sorted.txt
-head -n 50 output/msd-sorted.txt | scripts/top50.pl > output/top50table.html
+cat output/msd.txt | sort -k 3 | nl -s ' ' > output/msd-sorted.txt
+cat output/msd.txt | scripts/top50.pl > output/top50table.html
 cat scripts/report_top.php output/top50table.html \
        scripts/report_bottom.php > output/report.php
-head -n 1000 output/msd-sorted.txt | scripts/top50.pl > output/top1000table.html
+cat output/msd.txt | scripts/top50.pl -n 1000 > output/top1000table.html
 cat scripts/1000_top.php output/top1000table.html \
        scripts/1000_bottom.php > output/report_1000.php