tFormat all_time_use into tsv - bitreich-memestats - statistical analysis of ta… | |
git clone git://src.adamsgaard.dk/bitreich-memestats | |
Log | |
Files | |
Refs | |
--- | |
commit 8b2c68445d43d0c94c54acda78111be3c9bcc8dd | |
parent 40478c297936f8d19d37fef8684a09b5372a9898 | |
Author: Anders Damsgaard <[email protected]> | |
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(-) | |
--- | |
diff --git a/Makefile b/Makefile | |
t@@ -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 |