How do you split a file with multiple graphs in the DOT language into multiple DOT files using gvpr
?
Input (1 file):
# single.dot
digraph one {
a -> b;
}
digraph two {
c -> d;
}
Output (1 graph per file):
# one.dot
digraph one {
a -> b;
}
# two.dot
digraph two {
c -> d;
}
BEG_G {
fname = sprintf("%s.dot",$G.name);
writeG($G, fname);
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With