Reorganise gists folder

This commit is contained in:
TKE
2022-05-13 12:49:21 +02:00
parent ecd3c7fe2f
commit acd8d616dc
98 changed files with 63 additions and 20 deletions

17
tools/csv2dot Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/bash
header=1
file=test.csv
output="${file}.dot"
delim=,
s_id=6
d_id=8
e_label=11
cat > "${output}" <<EOF
graph a{
node [shape=record]
EOF
#awk -F"${delim}" '{print "\""$6 "\" -> \"" $8 "\"[label=\"" $11"\"]"}' "${file}" >> "${output}"
awk -F"${delim}" '{print "\""$6 "\" -- \"" $8 "\""}' "${file}" >> "${output}"
echo "}" >> "${output}"