Explorar el Código

Add script for showing output

John Tyree hace 11 años
padre
commit
a669248a9b
Se han modificado 1 ficheros con 8 adiciones y 0 borrados
  1. 8 0
      append_output.sh

+ 8 - 0
append_output.sh

@@ -0,0 +1,8 @@
+#!/bin/bash
+
+set -e
+
+src=$(sed -n -e "0,/### OUTPUT ###/p" "$1")
+output=$(python "$1" | sed 's/^/# /')
+
+echo -e "${src}\n${output}" > "$1"