i want to sort input file into output file as table
input:
Path 1:
StartP: a/b/c/d/
e/f/g/h
EndP: m/n/q/q/
r/s/t
Slack: -0.6
Path 2:
StartP: t/b/c/d/
e/f/g/h
EndP: t/n/q/q/
r/s/t
Slack: -0.22
Path 3:
StartP: a/b/c/d/k/i/
e/f/g/h
EndP: c/r/n/q/q/
r/s/t
Slack: -0.12
Path 4:
StartP: a/i/c/d/
e/f/g/h
EndP: m/y/x/q/
r/s/t
Slack: -0.8
Path 5:
StartP: a/z/c/d/
e/f/g/h
EndP: m/n/q/q/
r/s/t
Slack: -0.8
Path 6:
StartP: b/b/n/d/
e/f/g/h
EndP: x/n/c/q/
r/s/t
Slack: -0.8
and ouput i want:
Path num | StartPoint | EndPoint | Slack
1 | a/b/c/d/e/f/g/h | m/n/q/q/r/s/t | -0.6
2 | t/b/c/d/e/f/g/h | t/n/q/q/r/s/t | -0.22
3 | a/b/c/d/k/i/e/f/g/h | c/r/n/q/q/r/s/t | -0.12
4 | a/i/c/d/e/f/g/h | m/y/x/q/r/s/t | -0.8
5 | a/z/c/d/e/f/g/h | m/n/q/k/r/s/t | -0.8
6 | b/b/n/d/e/f/g/h | x/n/c/q/r/s/t | -0.8
<code> Total negative slack | -3.34
</code>
<code> Total negative slack | -3.34
</code>
Total negative slack | -3.34
I don’t know where to start, hope someone can help