Reorganise gists folder
This commit is contained in:
17
tools/csv2dot
Executable file
17
tools/csv2dot
Executable 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}"
|
||||
Reference in New Issue
Block a user