Format all_time_use into tsv - 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 8b2c68445d43d0c94c54acda78111be3c9bcc8dd DIR parent 40478c297936f8d19d37fef8684a09b5372a9898 HTML Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Fri, 17 Apr 2020 10:39:40 +0200 Format all_time_use into tsv Diffstat: M Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) --- DIR diff --git a/Makefile b/Makefile @@ -1,15 +1,16 @@ log = ~/.irssi/log/Freenode/\#bitreich-en.log -all: all_time_use.txt +all: all_time_use.tsv memeuse.tsv: extract_memeuse.awk awk -f extract_memeuse.awk $(log) > $@ -all_time_use.txt: memeuse.tsv - cut -f5 memeuse.tsv | sort | uniq -c | sort -r > $@ +all_time_use.tsv: memeuse.tsv + cut -f5 memeuse.tsv | sort | uniq -c | sort -r | \ + awk '{print $$1"\t"$$2}' > $@ clean: rm -f memeuse.tsv - rm -f all_time_use.txt + rm -f all_time_use.tsv .PHONY: all clean