commit 52c560d7c22391659b57b3c57b764c00ebb8f957 parent ff34446a2147b97905519b83f2f4d759782bf219 Author: Antoine Amarilli <a3nm@a3nm.net> Date: Fri, 28 Aug 2015 09:52:28 +0200 graph drawing code Diffstat:
graph.sh | | | 7 | +++++++ |
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/graph.sh b/graph.sh @@ -0,0 +1,7 @@ +#!/ban/bash + +cut -f1-4 graph | sed 's/\t/_/1;s/\t/_/2' | sort | uniq | + sed 's/°/X/g;s/§/Y/g;s/@/Z/g' > raw_graph +cat <(echo "digraph G {") <(cat raw_graph | awk '{print $1, "->", $2}') \ + <(echo '}') > graph.dot +# draw, e.g., with fdp