bitreich-memestats

statistical analysis of tags in Freenode/#bitreich-en
git clone git://src.adamsgaard.dk/bitreich-memestats
Log | Files | Refs Back to index

commit 1fb985b7c00e6515c979eec88fb5f016fef6205b
parent e3aca3409bdee91be0505096223c25b318e030ee
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Mon, 20 Apr 2020 09:06:19 +0200

Add script for generating formatted table of top 10 of meme use

Diffstat:
Atop10.sh | 17+++++++++++++++++
1 file changed, 17 insertions(+), 0 deletions(-)

diff --git a/top10.sh b/top10.sh @@ -0,0 +1,17 @@ +#!/bin/sh +# print table to stdout containing top 10 memes with averaged usage per week + +printf '\n ' +printf '+------ top 10 (uses per week) ------+\n' +i=1 +head "all_time_weekly_popularity.tsv" | while read u t; do + printf ' ' + printf '| %2d. %-23s %6.3f |\n' \ + "$i" \ + "$t" \ + "$u" + i=$((i+1)) +done + +printf ' ' +printf '+------------------------------------+\n'