Add script for generating formatted table of top 10 of meme use - bitreich-memestats - Bitreich meme statistics and graphs. HTML git clone git://bitreich.org/bitreich-memestats git://hg6vgqziawt5s4dj.onion/bitreich-memestats DIR Log DIR Files DIR Refs DIR Tags DIR LICENSE --- DIR commit 1fb985b7c00e6515c979eec88fb5f016fef6205b DIR parent e3aca3409bdee91be0505096223c25b318e030ee HTML 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: A top10.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+), 0 deletions(-) --- DIR 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'