We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c092495 commit a669248Copy full SHA for a669248
append_output.sh
@@ -0,0 +1,8 @@
1
+#!/bin/bash
2
+
3
+set -e
4
5
+src=$(sed -n -e "0,/### OUTPUT ###/p" "$1")
6
+output=$(python "$1" | sed 's/^/# /')
7
8
+echo -e "${src}\n${output}" > "$1"
0 commit comments