summaryrefslogtreecommitdiff
path: root/graph.sh
diff options
context:
space:
mode:
Diffstat (limited to 'graph.sh')
-rwxr-xr-xgraph.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/graph.sh b/graph.sh
new file mode 100755
index 0000000..da8f49c
--- /dev/null
+++ b/graph.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+(
+ echo "digraph {"
+ grep ' ' | sed 's/\(.*\) \(.*\)/\t\2->\1;/'
+ echo "}"
+) | dot -Tpng | feh -