songleash

generate chansons en laisse
git clone https://a3nm.net/git/songleash/
Log | Files | Refs

graph.sh (240B)


      1 #!/ban/bash
      2 
      3 cut -f1-4 graph | sed 's/\t/_/1;s/\t/_/2' | sort | uniq |
      4   sed 's/°/X/g;s/§/Y/g;s/@/Z/g' > raw_graph
      5 cat <(echo "digraph G {") <(cat raw_graph | awk '{print $1, "->", $2}') \
      6   <(echo '}') > graph.dot
      7 # draw, e.g., with fdp