From 2742524159ad2bc861711df084f6bd77588e9e9b Mon Sep 17 00:00:00 2001 From: Nick White Date: Sun, 31 Mar 2013 18:32:08 +0100 Subject: Initial commit --- htmtojargon.awk | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 htmtojargon.awk (limited to 'htmtojargon.awk') diff --git a/htmtojargon.awk b/htmtojargon.awk new file mode 100644 index 0000000..16c5356 --- /dev/null +++ b/htmtojargon.awk @@ -0,0 +1,17 @@ +#!/usr/bin/awk -f +# dirty xml reading is more fun + +BEGIN { + FS = "" +} + +{ printdefs($1, $2); } + +function printdefs(word, defs) { + n = split(defs, array, ""); + for(i=0; i<=n; i++) { + if(array[i] != "") { + printf(":%s: %s\n", word, array[i]); + } + } +} -- cgit v1.2.3