pmos-work-a71/scripts/build-devicelink-graph.sh

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