Skip to content

Commit a669248

Browse files
committed
Add script for showing output
1 parent c092495 commit a669248

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

append_output.sh

+8
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)