Created
May 18, 2010 01:46
-
-
Save wilhelmtell/404495 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from_dot() | |
{ | |
[ $# -gt 0 ] && local FROM="$@"; | |
sed '/[{}]/d; s/^\s*\|\s*\[[^]]*\]\s*\|\s*;\s*$//g; s/\s/_/g; s/\s*->\s*/ /' $FROM; | |
} | |
from_dot graph.dot |tsort #|tac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment