Introduction
Introduction Statistics Contact Development Disclaimer Help
tGenerate all time use count of tags, fix PHONY, remove trailing : from tags - …
git clone git://src.adamsgaard.dk/bitreich-memestats
Log
Files
Refs
---
commit 40478c297936f8d19d37fef8684a09b5372a9898
parent f8c777510e9663561ed292baaef1de5cfb7b4b91
Author: Anders Damsgaard <[email protected]>
Date: Fri, 17 Apr 2020 10:32:30 +0200
Generate all time use count of tags, fix PHONY, remove trailing : from tags
Diffstat:
M Makefile | 8 +++++++-
M extract_memeuse.awk | 2 +-
2 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/Makefile b/Makefile
t@@ -1,9 +1,15 @@
log = ~/.irssi/log/Freenode/\#bitreich-en.log
+all: all_time_use.txt
+
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 > $@
+
clean:
rm -f memeuse.tsv
+ rm -f all_time_use.txt
-.PHONY: memeuse.tsv
+.PHONY: all clean
diff --git a/extract_memeuse.awk b/extract_memeuse.awk
t@@ -40,7 +40,7 @@ function extract_tag(s) {
match(s, /#.*/);
s = substr(s, RSTART, RLENGTH);
gsub(/ .*/, "", s);
- gsub(/[!?,\.]$/, "", s);
+ gsub(/[!?:,\.]$/, "", s);
return s;
}
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.