6 lines
167 B
Bash
Executable File
6 lines
167 B
Bash
Executable File
#!/usr/bin/env -S bash -e
|
|
out="devicelinks.dot"
|
|
echo "digraph {" > $out
|
|
cat devicelinks | awk -F "--" '//{printf "\"%s\"->\"%s\"\n", $2, $1}' >> $out
|
|
echo "}" >> $out
|