Commit 5eaa6a8e authored by stew's avatar stew

redefine awk to include everything between "fertig" heading and next heading

parent d726f849
......@@ -6,7 +6,7 @@ filename='s0vouchers.png'
function gendot(){
(echo "strict digraph S0SocialWeb{" ;
wget -q -O - https://pad.stratum0.org/p/35c3vouchers/export/txt |
awk '/^$/{f=0};f{print tolower($0)};/.*Fertig und weitergegeben haben/{f=1;next}'|
awk '/^\*[0-9]+\. Fertig/{f=1;next} /^\*[0-9]+/{f=0} !/^\s+1\. /{next} f{print tolower($0)}'|
sed -E -e "s/^\s*[0-9]+.\s+(\S+).*von\s+(\S+).*an\s+(\S+).*/\"\\1\" -> \"\\3\" \n\"\\2\" -> \"\\1\"/" |
sed -E -e "s/^\s*[0-9]+.\s+(\S+).*von (\S+).*/\"\\2\" -> \"\\1\"/" |
sed -E -e "s/^\s*[0-9]+.\s+(\S+).*an (\S+).*/\"\\1\" -> \"\\2\"/" |
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment